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