Hi,
I've some problems starting nagios with daemon-init. The problem is the su command on it. Looking in
the man, I think the correct sintax is the one in the following patch. With this change I have no
problem.
Andrea
--- daemon-init.orig 2005-12-01 16:31:17.629258000 +0100
+++ daemon-init 2005-12-01 16:31:56.815603000 +0100
@@ -114,7 +114,7 @@
echo "Starting network monitor: nagios"
$NagiosBin -v $NagiosCfgFile > /dev/null 2>&1;
if [ $? -eq 0 ]; then
- su - $NagiosUser -c "touch $NagiosVarDir/nagios.log
$NagiosRetentionFile"
+ su -c "touch $NagiosVarDir/nagios.log
$NagiosRetentionFile" $NagiosUser
rm -f $NagiosCommandFile
touch $NagiosRunFile
chown $NagiosUser:$NagiosGroup $NagiosRunFile
--
---------------------------------------
Have a nice day and so have I.
---------------------------------------
Ing. Andrea Gabellini
Email: [EMAIL PROTECTED]
Tel: 0549 886111 (Italy)
Tel. +378 0549 886111 (International)
Telecom Italia San Marino S.p.A.
Strada degli Angariari, 3
47891 Rovereta
Repubblic of San Marino
http://www.omniway.sm http://www.telecomitalia.sm
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null