20 lines
421 B
SYSTEMD
20 lines
421 B
SYSTEMD
|
[Unit]
|
||
|
Description=Zabbix Web Service
|
||
|
After=syslog.target
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Environment="CONFFILE=/etc/zabbix/zabbix_web_service.conf"
|
||
|
EnvironmentFile=-/etc/sysconfig/zabbix_web_service
|
||
|
Type=simple
|
||
|
Restart=on-failure
|
||
|
KillMode=control-group
|
||
|
ExecStart=/usr/sbin/zabbix_web_service -c $CONFFILE
|
||
|
ExecStop=/bin/kill -SIGTERM $MAINPID
|
||
|
RestartSec=10s
|
||
|
User=zabbix
|
||
|
Group=zabbix
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|