Add 'blockbot.service'
This commit is contained in:
parent
f636ad4136
commit
52117d6b48
19
blockbot.service
Normal file
19
blockbot.service
Normal 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
|
Loading…
Reference in New Issue
Block a user