generated from mirzaev/pot
18 lines
399 B
SYSTEMD
18 lines
399 B
SYSTEMD
|
[Unit]
|
||
|
Description=Telegram chat-robot: @domain_of_your_robot_here
|
||
|
|
||
|
Wants=network.target
|
||
|
After=syslog.target network-online.target
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=sudo -u www-data /usr/bin/php /var/www/project/mirzaev/unchainer/system/public/telegram.php
|
||
|
PIDFile=/var/run/php/unchainer-telegram.pid
|
||
|
RemainAfterExit=no
|
||
|
RuntimeMaxSec=3600s
|
||
|
Restart=always
|
||
|
RestartSec=5s
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|