add example systemd service
This commit is contained in:
parent
79a22b0fd0
commit
b4e748aff5
14
titlebot.service
Normal file
14
titlebot.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=irc title bot
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/path/to/titlebot
|
||||
ExecStart=./target/release/titlebot
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StartLimitInterval=60s
|
||||
StartLimitBurst=3
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in a new issue