add example systemd service

This commit is contained in:
Yash Karandikar 2021-05-06 11:46:02 -05:00
parent 79a22b0fd0
commit b4e748aff5
Signed by: karx
GPG key ID: A794DA2529474BA5

14
titlebot.service Normal file
View 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