Kaysoro / KaellyBot

Discord Bot for Dofus game
GNU General Public License v3.0
70 stars 26 forks source link

Kaelly as a deamon in Systemsd #106

Closed Kaysoro closed 2 years ago

Kaysoro commented 6 years ago
MadJlzz commented 4 years ago

I configured Kaelly as a daemon on my own server. Here is my systemd service unit that you could use as an example:

[Unit]
Description=KaellyBot systemd service.

[Service]
WorkingDirectory=/home/dobot
ExecStart=/usr/bin/java -jar /home/dobot/kaelly.jar
User=dobot

[Install]
WantedBy=multi-user.target

Then, simply use sudo systemctl enable dobot.service to let systemctl restart the daemon when a reboot occurs.

Kaysoro commented 2 years ago

It's done for few months ago, forgot to close this issue, thanks :)