summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2022-02-02 16:36:36 +0100
committerGeorg Pfuetzenreuter2022-02-02 16:36:36 +0100
commit032475c1c895ffd902f92516bdca116e7ebbe2bc (patch)
tree926052b22fd108ba3c21e2d2f78abc70d40d59df
parent379891b2d09ced1187df3226f8693d39b64e36e2 (diff)
downloadwatbot-systemd.tar.gz
watbot-systemd.tar.bz2
watbot-systemd.zip
Init systemd servicesystemd
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
-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