systemd service and something

This commit is contained in:
2024-04-15 23:54:57 +07:00
parent bcac9c405e
commit 017fc9e1aa
2 changed files with 7 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
[Unit]
Description=Telegram-robot
Wants=network.target
After=syslog.target network-online.target
[Service]
ExecStart=sudo -u www-data /usr/bin/php /var/www/spetsresurs-telegram-registry-requests/mirzaev/spetsresurs/telegram/registry/requests/system/public/robot.php
PIDFile=/var/run/php/telegram-robot.pid
@@ -8,3 +11,6 @@ RemainAfterExit=no
RuntimeMaxSec=3600s
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target