josuf107 / xioqbot

twitch queue bot
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Set up service control around the bot #34

Open josuf107 opened 7 years ago

josuf107 commented 7 years ago

Occasionally the bot stops functioning, either because the server is restarted for maintenance or because the actual program stops running on its own for reasons I haven't ascertained yet (haven't found anything in the error logs). I want the bot to start running when the server is started up and to be restarted if it goes down for any reason.

josuf107 commented 7 years ago

I don't anticipate any code changes for this issue. It's just for administration.

josuf107 commented 7 years ago

http://0pointer.de/public/systemd-man/systemd.service.html might be useful, especially the Restart=all option. Alse see http://0pointer.de/blog/projects/systemd-for-admins-3.html for an example of writing a systemd unit file.