huesos/examples/systemd/huesos.service

17 lines
379 B
SYSTEMD
Raw Normal View History

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