Blame SOURCES/zabbix-agent2.service

1c3a77
[Unit]
1c3a77
Description=Zabbix Agent 2
1c3a77
After=syslog.target
1c3a77
After=network.target
1c3a77
1c3a77
[Service]
1c3a77
Environment="CONFFILE=/etc/zabbix/zabbix_agent2.conf"
1c3a77
EnvironmentFile=-/etc/sysconfig/zabbix-agent2
1c3a77
Type=simple
1c3a77
Restart=on-failure
1c3a77
PIDFile=/run/zabbix/zabbix_agent2.pid
1c3a77
KillMode=control-group
1c3a77
ExecStart=/usr/sbin/zabbix_agent2 -c $CONFFILE
1c3a77
ExecStop=/bin/kill -SIGTERM $MAINPID
1c3a77
RestartSec=10s
1c3a77
User=zabbix
1c3a77
Group=zabbix
1c3a77
1c3a77
[Install]
1c3a77
WantedBy=multi-user.target