You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
440 B
20 lines
440 B
[Unit]
|
|
Description=Zabbix Agent 2
|
|
After=syslog.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
Environment="CONFFILE=/etc/zabbix/zabbix_agent2.conf"
|
|
EnvironmentFile=-/etc/sysconfig/zabbix-agent2
|
|
Type=simple
|
|
Restart=on-failure
|
|
PIDFile=/run/zabbix/zabbix_agent2.pid
|
|
KillMode=control-group
|
|
ExecStart=/usr/sbin/zabbix_agent2 -c $CONFFILE
|
|
ExecStop=/bin/kill -SIGTERM $MAINPID
|
|
RestartSec=10s
|
|
User=zabbix
|
|
Group=zabbix
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|