Add systemd/automod.service
This commit is contained in:
parent
a667c64b85
commit
c84da8f48c
|
@ -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
|
Loading…
Reference in New Issue