forked from tilderadio/radiobot
add systemd service
This commit is contained in:
parent
247d0b8613
commit
548ac3abbe
|
@ -0,0 +1,16 @@
|
||||||
|
[Unit]
|
||||||
|
Description=radiobot
|
||||||
|
After=radiobot.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
WorkingDirectory=/home/ben/workspace/radiobot
|
||||||
|
ExecStart=/bin/bash /home/ben/workspace/radiobot/bot.sh
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5
|
||||||
|
StartLimitInterval=60s
|
||||||
|
StartLimitBurst=3
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
|
|
Loading…
Reference in New Issue