Add systemd service and update capability
This commit is contained in:
parent
a5b5189e52
commit
a8169108b8
3 changed files with 34 additions and 0 deletions
15
radical-bot.service
Normal file
15
radical-bot.service
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Radical Bot Daemon
|
||||
After=network.target
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/otp/radical-bot
|
||||
User=radical-bot
|
||||
Group=radical-bot
|
||||
Restart=always
|
||||
RestartSec=20 3
|
||||
ExecStart=/usr/bin/env python3.9 main.py
|
||||
|
||||
[Install]
|
||||
WantedBy=multi.user.target
|
Loading…
Add table
Add a link
Reference in a new issue