From 31022e24afc0cca9f3ff64660ed007cb60129f4d Mon Sep 17 00:00:00 2001 From: Arsen Mirzaev Tatyano-Muradovich Date: Mon, 15 Apr 2024 23:54:18 +0700 Subject: [PATCH] systemd service --- telegram-robot-entry.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 telegram-robot-entry.service diff --git a/telegram-robot-entry.service b/telegram-robot-entry.service new file mode 100755 index 0000000..8b9d8be --- /dev/null +++ b/telegram-robot-entry.service @@ -0,0 +1,17 @@ +[Unit] +Description=Telegram-robot-entry + +Wants=network.target +After=syslog.target network-online.target + +[Service] +ExecStart=sudo -u www-data /usr/bin/php /var/www/spetsresurs-telegram-robot-entry/mirzaev/spetsresurs/telegram/robot/entry/system/public/robot.php +PIDFile=/var/run/php/telegram-robot-entry.pid +RemainAfterExit=no +RuntimeMaxSec=3600s +Restart=always +RestartSec=5s + + +[Install] +WantedBy=multi-user.target