diff options
author | Georg Pfuetzenreuter | 2022-02-02 16:36:36 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2022-02-02 16:36:36 +0100 |
commit | 032475c1c895ffd902f92516bdca116e7ebbe2bc (patch) | |
tree | 926052b22fd108ba3c21e2d2f78abc70d40d59df | |
parent | 379891b2d09ced1187df3226f8693d39b64e36e2 (diff) | |
download | watbot-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@.service | 14 |
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 |