Nagios init script

jeff vier jeff.vier at tradingtechnologies.com
Tue Sep 14 20:22:09 CEST 2004


On Tue, 2004-09-14 at 19:42 +0200, Horvath Tamas wrote:
> I installed Nagios 1.1 in two machines, and upgarded each of them to 
> 1.2. In every case the /etc/init.d/nagios script contains the "su -l 
> $Nagios -c "touch $NagiosVar/nagios.log $NagiosSav" line under start) 
> section. It starts nagios with an error message: "su invalid option -- 
> l". It is true, because I read the man page and the help of su, but 
> there is no "l".
> I use Debian Woody 3.1. What does this l mean? Can I simply delete it, 
> or should I substitute it with other parameter?

-l just denotes what user you're changing to (or acting as).

So, "su -l bob" means "change to user bob"

Change it to whatever is appropriate for your version of su.




-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m




More information about the Developers mailing list