forked from mirzaev/pot-php
exaples
This commit is contained in:
16
examples/systemd/telegram.service
Normal file
16
examples/systemd/telegram.service
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Telegram chat-robot: @robot_bot
|
||||||
|
|
||||||
|
Wants=network.target
|
||||||
|
After=syslog.target network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=sudo -u www-data /usr/bin/php /var/www/${REPO_NAME}/${REPO_OWNER}/${REPO_NAME}/system/public/telegram.php
|
||||||
|
PIDFile=/var/run/php/telegram.pid
|
||||||
|
RemainAfterExit=no
|
||||||
|
RuntimeMaxSec=3600s
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5s
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user