zabbix: modify service file

-Fixed a bug that could not exit the service normally.
When using systemd to exit the service, the child process cannot be terminated normally. Refer to the style of fedora to modify it.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Zang Ruochen 2020-01-16 15:46:07 +08:00 committed by Khem Raj
parent 20f95b4041
commit c18278bc04

View File

@ -3,9 +3,8 @@ Description=Zabbix Monitor Agent
After=syslog.target network.target
[Service]
Type=oneshot
ExecStart=@SBINDIR@/zabbix_agentd
RemainAfterExit=yes
Type=simple
ExecStart=@SBINDIR@/zabbix_agentd -f
User=zabbix
[Install]