new systemd service

This commit is contained in:
2018-04-14 20:31:54 +08:00
parent edc8bbc3ae
commit 91da34d642

14
kcoj_bot.service Normal file
View File

@ -0,0 +1,14 @@
[Unit]
Description=kcoj_bot services
After=network.service
[Service]
Type=simple
User=pinlin
ExecStart=/home/pinlin/.pyenv/shims/python3 /home/pinlin/kcoj_bot/bot.py
ExecStop=/bin/systemctl kill kcoj_bot
Restart=always
KillMode=process
[Install]
WantedBy=multi-user.target