systemd service
This commit is contained in:
parent
572afd89b4
commit
8eb463cd57
16
zabbix-telegram.service
Normal file
16
zabbix-telegram.service
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[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
|
||||||
|
ExecStart=/usr/bin/python3 /url/local/bin/zabbix-telegram/main.py
|
||||||
|
ExecStop=/bin/kill $MAINPID
|
||||||
|
KillMode=process
|
||||||
|
Type=simple
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user