Add 'blockbot.service'

This commit is contained in:
verita84 2023-05-24 16:45:18 -06:00
parent f636ad4136
commit 52117d6b48
1 changed files with 19 additions and 0 deletions

19
blockbot.service Normal file
View File

@ -0,0 +1,19 @@
[Unit]
Description=BlockBot Daemon
After=network.target
After=akkoma.service
After=postgresql@15-main.service
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/bin/bash /opt/blockbot/bot.sh daemon &
ExecStop=/usr/bin/killall -9 bot.sh
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target