2019-06-24 12:25:42 +08:00
|
|
|
[Unit]
|
|
|
|
Description=Zabbix Telegram Bot
|
|
|
|
After=local-fs.target network-online.target network.target
|
|
|
|
Wants=local-fs.target network-online.target network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
PIDFile=/var/run/zabbix/zabbix-telegram.pid
|
2019-06-24 15:23:14 +08:00
|
|
|
ExecStart=/usr/bin/python3 /usr/local/bin/zabbix-telegram/main.py > /var/log/zabbix/zabbix-telegram.log
|
2019-06-24 12:25:42 +08:00
|
|
|
ExecStop=/bin/kill $MAINPID
|
|
|
|
KillMode=process
|
|
|
|
Type=simple
|
|
|
|
Restart=always
|
|
|
|
RestartSec=5
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|