From c84da8f48ca53fc3ebbcd6907cfd4a813edfb9d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TED=20A=2E=20=E2=AD=95?= Date: Mon, 6 Nov 2023 23:02:10 +0000 Subject: [PATCH] Add systemd/automod.service --- systemd/automod.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 systemd/automod.service diff --git a/systemd/automod.service b/systemd/automod.service new file mode 100644 index 0000000..2151053 --- /dev/null +++ b/systemd/automod.service @@ -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 \ No newline at end of file