From c18278bc04ce03e00fdbf5587dff5e05c958fe53 Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Thu, 16 Jan 2020 15:46:07 +0800 Subject: 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 Signed-off-by: Khem Raj --- meta-oe/recipes-connectivity/zabbix/zabbix/zabbix-agent.service | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/meta-oe/recipes-connectivity/zabbix/zabbix/zabbix-agent.service b/meta-oe/recipes-connectivity/zabbix/zabbix/zabbix-agent.service index b18a96f8b6..56e5064281 100644 --- a/meta-oe/recipes-connectivity/zabbix/zabbix/zabbix-agent.service +++ b/meta-oe/recipes-connectivity/zabbix/zabbix/zabbix-agent.service @@ -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] -- cgit v1.2.3-54-g00ecf