# check for precache
precached_object_file=$(awk -F= '/^precached_object_file/{print $2}' $cfg_file)
+# nagios pid file
+pid_file=$(awk -F= '/^lock_file/{print $2}' $cfg_file)
+pid_file=${pid_file:-/var/lib/nagios/nagios.pid}
+
# configtest itself
configtest() {
/usr/sbin/nagios ${precached_object_file:+-p} -v $cfg_file
fi
msg_stopping "Nagios"
- killproc nagios -TERM
+ killproc --pidfile $pid_file nagios
rm -f /var/lock/subsys/nagios > /dev/null 2>&1
}
msg_reloading "Nagios"
# NOTE: precached object file is created in configtest.
- killproc nagios -HUP
+ killproc --pidfile $pid_file nagios -HUP
RETVAL=$?
}
checkconfig 1
;;
status)
- status nagios
+ status --pidfile $pid_file nagios
RETVAL=$?
;;
*)
Source7: http://www.google.com/mapfiles/marker.png
# Source7-md5: edefef4bdfc29e1c953694651f05b466
Source8: googlemap.js
-Source9: nagioswall.php
+Source9: %{name}wall.php
Patch0: %{name}-resources.patch
Patch1: %{name}-iconv-in-libc.patch
Patch2: %{name}-webapps.patch
%endif
Requires(post,preun): /sbin/chkconfig
Requires: %{name}-common = %{version}-%{release}
-Requires: rc-scripts
+Requires: rc-scripts >= 0.4.5.5
Requires: sh-utils
Suggests: nagios-notify >= 0.13
Suggests: nagios-plugin-check_load