Basic systemd service #4

Merged
pratyush merged 1 commits from systemd into master 2022-03-01 12:24:28 +01:00

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