diff options
Diffstat (limited to 'net-mgmt/netsaint/files/patch-ai')
-rw-r--r-- | net-mgmt/netsaint/files/patch-ai | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/net-mgmt/netsaint/files/patch-ai b/net-mgmt/netsaint/files/patch-ai index 433d6d74758d..1820da920208 100644 --- a/net-mgmt/netsaint/files/patch-ai +++ b/net-mgmt/netsaint/files/patch-ai @@ -1,25 +1,27 @@ ---- 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 @@ +--- daemon-init.in.orig Sat Mar 24 19:58:26 2001 ++++ daemon-init.in Tue May 1 19:38:52 2001 +@@ -68,12 +68,9 @@ # 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 /etc/rc.d/init.d/functions ]; then +-#. /etc/rc.d/init.d/functions +-#elif [ -f /etc/init.d/functions ]; then +-#. /etc/init.d/functions +-#fi +if [ -f @sysconfdir@/functions ]; then +. @sysconfdir@/functions - fi ++fi prefix=@prefix@ + exec_prefix=@exec_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 + echo "Starting network monitor: netsaint" +- su $Netsaint -c "touch $NetsaintVar/netsaint.log $NetsaintSav" ++ su -m $Netsaint -c "touch $NetsaintVar/netsaint.log $NetsaintSav" + rm -f $NetsaintCmd + $NetsaintBin -d $NetsaintCfg + if [ -d $NetsaintLckDir ]; then touch $NetsaintLckDir/$NetsaintLckFile; fi |