aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGravatar jesopo2019-03-13 18:26:18 +0000
committerGravatar GitHub2019-03-13 18:26:18 +0000
commit5c6e8305cabcf024ddeabeb8f00229e29f53b726 (patch)
treef29003d175bc3ef1851a9eb9c62b9a347c00324f /docs
parentAdd 'api-port' setting to bot.conf and use it in rest_api.py (diff)
parentDelete bitbot.service (diff)
Merge pull request #48 from TheMythPT/patch-1
Create bitbot.service
Diffstat (limited to 'docs')
-rw-r--r--docs/bitbot.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/bitbot.service b/docs/bitbot.service
new file mode 100644
index 00000000..1bd18ef5
--- /dev/null
+++ b/docs/bitbot.service
@@ -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