Merge pull request 'Basic systemd service' (#4) from systemd into master

Reviewed-on: #4
This commit is contained in:
Pratyush Desai 2022-03-01 12:24:28 +01:00
commit 28efaf9eec

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