Init systemd service
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
379891b2d0
commit
032475c1c8
14
init/systemd/watbot@.service
Normal file
14
init/systemd/watbot@.service
Normal 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
|
Loading…
Reference in New Issue
Block a user