zabbix/SOURCES/zabbix-agent2.service

22 lines
457 B
SYSTEMD
Raw Permalink Normal View History

2022-11-21 20:37:02 +00:00
[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
2023-05-22 06:47:57 +00:00
LimitNOFILE=8192
2022-11-21 20:37:02 +00:00
[Install]
WantedBy=multi-user.target