Merge pull request #48 from TheMythPT/patch-1

Create bitbot.service
This commit is contained in:
jesopo 2019-03-13 18:26:18 +00:00 committed by GitHub
commit 5c6e8305ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
docs/bitbot.service Normal file
View file

@ -0,0 +1,20 @@
# This systemd script was made to be used in Ubuntu 18.04 LTS
# Check your distro and make the appropriate changes if needed
[Unit]
Description=BitBot Service
Wants=network-online.target
After=network-online.target
[Service]
User=$USER
Group=$GROUP
WorkingDirectory=/home/$USER/bitbot
ExecStart=/usr/bin/env python3 start.py
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
[Install]
WantedBy=multi-user.target
# Remember to change $USER and $GROUP with your actual shell username