Add systemd/automod.service

This commit is contained in:
TED A. ⭕ 2023-11-06 23:02:10 +00:00
parent a667c64b85
commit c84da8f48c
1 changed files with 13 additions and 0 deletions

13
systemd/automod.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Restarts automod if it closes
[Service]
User=automod
Working Directory=/usr/bin/automod/automod
ExecStart=/usr/bin/automod/automod/bin/python3.11 /usr/bin/automod/automod/bot.py
Restart=always
RestartSec=10
RestartPreventExitStatus=SIGTERM
[Install]
WantedBy=multi-user.target