Browse Source

move handler template to conf repo

blezz-tech 6 days ago
parent
commit
03638d2837
1 changed files with 18 additions and 0 deletions
  1. 18 0
      handler@.service

+ 18 - 0
handler@.service

@@ -0,0 +1,18 @@
+[Unit]
+Description=ShariX Handler Open Basic Bot: $I
+After=network.target
+
+[Service]
+Type=simple
+User=root
+WorkingDirectory=/root/sharix-open-webapp-base/webservice_running/handlers
+ExecStart=/root/sharix-open-webapp-base/webservice_running/handlers/.venv/bin/python3 /root/sharix-open-webapp-base/webservice_running/handlers/main.py -b %i -d
+# TODO: Убрать -d,, когжа не будет нужным
+Restart=always
+RestartSec=60s
+
+TimeoutStopSec=30
+KillSignal=SIGTERM
+
+[Install]
+WantedBy=multi-user.target