slackbuilds_ponce/network/nagios/default-init.in.diff
Mario Preksavec dbc9610098
network/nagios: Updated for version 4.4.6.
Signed-off-by: Mario Preksavec <mario@slackware.hr>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2021-08-19 18:33:51 +07:00

13 lines
420 B
Diff

--- nagios-4.4.6/startup/default-init.in.orig 2020-04-28 22:48:29.000000000 +0200
+++ nagios-4.4.6/startup/default-init.in 2021-07-31 23:32:21.895857400 +0200
@@ -180,6 +180,10 @@
check_config
+ NagiosRunDir=`dirname $NagiosRunFile`
+ mkdir -p $NagiosRunDir
+ chown $NagiosUser:$NagiosGroup $NagiosRunDir
+
if test -f $NagiosRunFile; then
NagiosPID=`head -n 1 $NagiosRunFile`
if status_nagios; then