From a75386df3280eb8ad95d4fddc21b54a82ff48174 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 14 Oct 2019 10:31:49 +0100 Subject: move bitbot.service, update it for `start.py` -> `bitbotd` --- docs/bitbot.service | 20 -------------------- docs/systemd/bitbot.service | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 docs/bitbot.service create mode 100644 docs/systemd/bitbot.service diff --git a/docs/bitbot.service b/docs/bitbot.service deleted file mode 100644 index 1bd18ef5..00000000 --- a/docs/bitbot.service +++ /dev/null @@ -1,20 +0,0 @@ -# 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 diff --git a/docs/systemd/bitbot.service b/docs/systemd/bitbot.service new file mode 100644 index 00000000..61ad4659 --- /dev/null +++ b/docs/systemd/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] +# change any of the 3 following lines as applicable +User=bitbot +Group=bitbot +WorkingDirectory=/opt/bitbot/ + +ExecStart=/usr/bin/env python3 bitbotd +ExecReload=/bin/kill -HUP $MAINPID +Restart=always + +[Install] +WantedBy=multi-user.target -- cgit v1.3.1-10-gc9f91