arming/telegram-arming_bot.service

17 lines
381 B
SYSTEMD
Raw Permalink Normal View History

2024-09-30 18:29:41 +07:00
[Unit]
Description=Telegram-robot - @arming_bot
Wants=network.target
After=syslog.target network-online.target
[Service]
ExecStart=sudo -u www-data /usr/bin/php /var/www/arming_bot/mirzaev/arming_bot/system/public/robot.php
PIDFile=/var/run/php/telegram-arming_bot.pid
RemainAfterExit=no
RuntimeMaxSec=3600s
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target