From 032475c1c895ffd902f92516bdca116e7ebbe2bc Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Wed, 2 Feb 2022 16:36:36 +0100 Subject: Init systemd service Signed-off-by: Georg Pfuetzenreuter --- init/systemd/watbot@.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 init/systemd/watbot@.service (limited to 'init/systemd/watbot@.service') 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 -- cgit v1.2.3