summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPratyush Desai2022-03-01 12:24:28 +0100
committerPratyush Desai2022-03-01 12:24:28 +0100
commit28efaf9eec032bcdaa26cf9ff4f2ac79bb60f3e3 (patch)
tree926052b22fd108ba3c21e2d2f78abc70d40d59df
parent379891b2d09ced1187df3226f8693d39b64e36e2 (diff)
parent032475c1c895ffd902f92516bdca116e7ebbe2bc (diff)
downloadwatbot-master.tar.gz
watbot-master.tar.bz2
watbot-master.zip
Merge pull request 'Basic systemd service' (#4) from systemd into masterHEADmaster
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/4
-rw-r--r--init/systemd/watbot@.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/init/systemd/watbot@.service b/init/systemd/watbot@.service
new file mode 100644
index 0000000..14eb0f3
--- /dev/null
+++ b/init/systemd/watbot@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=watbot for %i
+Wants=network.target
+
+[Service]
+User=watbot
+Group=watbot
+WorkingDirectory=/opt/watbot/watbot-%i
+ExecStart=/opt/watbot/go/bin/watbot wat.db
+Restart=always
+RestartSec=15
+
+[Install]
+WantedBy=multi-user.target