2019-03-13 18:22:59 +00:00
|
|
|
# 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]
|
2019-10-14 09:31:49 +00:00
|
|
|
# change any of the 3 following lines as applicable
|
|
|
|
User=bitbot
|
|
|
|
Group=bitbot
|
|
|
|
WorkingDirectory=/opt/bitbot/
|
|
|
|
|
|
|
|
ExecStart=/usr/bin/env python3 bitbotd
|
2019-10-18 10:32:22 +00:00
|
|
|
ExecStop=/usr/bin/env python3 bitbotctl stop
|
2019-10-25 16:29:23 +00:00
|
|
|
ExecReload=/usr/bin/env python3 bitbotctl reload
|
2019-03-13 18:22:59 +00:00
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|