diff --git a/systemd/sketchman.service b/systemd/sketchman.service new file mode 100644 index 0000000..e626c4d --- /dev/null +++ b/systemd/sketchman.service @@ -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 \ No newline at end of file