daemonize all the things

This commit is contained in:
vulpine 2020-06-24 20:14:32 +00:00
parent a92a02e85f
commit b2c44e8bfd
1 changed files with 10 additions and 0 deletions

10
oirc.service Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=oirc bot
[Service]
ExecStart=/bin/sh -c 'source /home/xfnw/env/bin/activate; cd /home/xfnw/oirc-bot/; PYTHONUNBUFFERED=1 ./bot.py'
[Install]
WantedBy=default.target