Init systemd service

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2022-02-02 16:36:36 +01:00
parent 379891b2d0
commit 032475c1c8
Signed by: Georg
GPG Key ID: 1DAF57F49F8E8F22

View File

@ -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