aboutsummaryrefslogtreecommitdiffstats
path: root/net/nagios/files/patch-ai
blob: 433d6d74758d8834d571ff31835e3e583c83e2cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- daemon-init.in.orig Thu Apr 18 06:27:13 2002
+++ daemon-init.in  Sun May 19 08:39:29 2002
@@ -68,11 +68,8 @@
 
 
 # Source function library
-# Solaris doesn't have an rc.d directory, so do a test first
-if [ -f /etc/rc.d/init.d/functions ]; then
-   . /etc/rc.d/init.d/functions
-elif [ -f /etc/init.d/functions ]; then
-   . /etc/init.d/functions
+if [ -f @sysconfdir@/functions ]; then
+. @sysconfdir@/functions
 fi
 
 prefix=@prefix@
@@ -102,7 +99,7 @@
 
    start)
        echo "Starting network monitor: nagios"
-       su -l $Nagios -c "touch $NagiosVar/nagios.log $NagiosSav"
+       su -m $Nagios -c "touch $NagiosVar/nagios.log $NagiosSav"
        rm -f $NagiosCmd
        $NagiosBin -d $NagiosCfg
        if [ -d $NagiosLckDir ]; then touch $NagiosLckDir/$NagiosLckFile; fi