my service change location

This commit is contained in:
2018-05-06 14:45:58 +08:00
parent b4dacb66e3
commit 8461b63ab7

14
service/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