aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZang Ruochen <zangrc.fnst@cn.fujitsu.com>2020-01-16 15:46:07 +0800
committerKhem Raj <raj.khem@gmail.com>2020-01-16 07:44:40 -0800
commitc18278bc04ce03e00fdbf5587dff5e05c958fe53 (patch)
tree53015e0c5b2d1a628cc6261bdeb6191fe73191c0
parent20f95b4041d8aa7819085ac87aa960e0d032c8e7 (diff)
downloadmeta-openembedded-contrib-c18278bc04ce03e00fdbf5587dff5e05c958fe53.tar.gz
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>
-rw-r--r--meta-oe/recipes-connectivity/zabbix/zabbix/zabbix-agent.service5
1 files 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]