Add systemd service and update capability

This commit is contained in:
Riley Housden 2022-08-19 22:35:30 -04:00
parent a5b5189e52
commit a8169108b8
Signed by: InValidFire
GPG key ID: 0D6208F6DF56B4D8
3 changed files with 34 additions and 0 deletions

15
radical-bot.service Normal file
View 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