diff options
author | Changqing Li <changqing.li@windriver.com> | 2019-06-06 10:19:28 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-06-10 09:55:27 -0400 |
commit | 39443a1f935dca087f05ff0a3ebe97a2203688fc (patch) | |
tree | d35d7f0a51277423e42126e3574cf83b4670908c /recipes-extended | |
parent | 1f26faec8a8ebcc177e1d29c62bd8b8dbe0fe1cc (diff) | |
download | meta-virtualization-39443a1f935dca087f05ff0a3ebe97a2203688fc.tar.gz |
nagios-nrpe: fix systemd service start failed
Jun 06 01:44:51 qemux86 systemd[1]: Started Nagios nrpe plugin.
Jun 06 01:44:51 qemux86 nrpe[1263]: Starting up daemon
Jun 06 01:44:51 qemux86 nrpe[1263]: Cannot write to pidfile '/var/nagios/nrpe.pid' - check your privileges.
Jun 06 01:44:51 qemux86 systemd[1]: nagios-nrpe.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 06 01:44:51 qemux86 systemd[1]: nagios-nrpe.service: Failed with result 'exit-code'
In configuration file /etc/nagios/nrpe.cfg, the pidfile is under /var/nagios.
fix by stop rm the /var/nagios, and include it into daemon packages
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-extended')
-rw-r--r-- | recipes-extended/nagios/nagios-nrpe_3.2.1.bb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/recipes-extended/nagios/nagios-nrpe_3.2.1.bb b/recipes-extended/nagios/nagios-nrpe_3.2.1.bb index 94933367..3afa5dd9 100644 --- a/recipes-extended/nagios/nagios-nrpe_3.2.1.bb +++ b/recipes-extended/nagios/nagios-nrpe_3.2.1.bb | |||
@@ -73,8 +73,6 @@ do_install_append() { | |||
73 | install -d ${D}${systemd_unitdir}/system | 73 | install -d ${D}${systemd_unitdir}/system |
74 | install -m 644 ${WORKDIR}/nagios-nrpe.service ${D}${systemd_unitdir}/system/ | 74 | install -m 644 ${WORKDIR}/nagios-nrpe.service ${D}${systemd_unitdir}/system/ |
75 | fi | 75 | fi |
76 | |||
77 | rmdir -p --ignore-fail-on-non-empty ${D}${localstatedir}/nagios | ||
78 | } | 76 | } |
79 | 77 | ||
80 | PACKAGES = "${PN}-dbg ${PN}-plugin ${PN}-daemon" | 78 | PACKAGES = "${PN}-dbg ${PN}-plugin ${PN}-daemon" |
@@ -86,6 +84,7 @@ FILES_${PN}-plugin = "${NAGIOS_PLUGIN_DIR} \ | |||
86 | FILES_${PN}-daemon = "${sysconfdir} \ | 84 | FILES_${PN}-daemon = "${sysconfdir} \ |
87 | ${bindir} \ | 85 | ${bindir} \ |
88 | ${nonarch_libdir}/tmpfiles.d/ \ | 86 | ${nonarch_libdir}/tmpfiles.d/ \ |
87 | ${localstatedir} \ | ||
89 | " | 88 | " |
90 | 89 | ||
91 | RDEPENDS_${PN}-daemon = "nagios-base" | 90 | RDEPENDS_${PN}-daemon = "nagios-base" |