Add systemd/sketchman.service

This commit is contained in:
TED A. ⭕ 2023-11-06 23:04:35 +00:00
parent 4583828c90
commit 605ee64678
1 changed files with 13 additions and 0 deletions

13
systemd/sketchman.service Normal file
View File

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