Problem init.d script
Max
perldork at webwizarddesign.com
Wed May 7 14:32:52 CEST 2008
On Wed, May 7, 2008 at 7:17 AM, Morten Guldager
<morten.guldager at gmail.com> wrote:
> 'Aloha!
>
> I have found what looks like a bug in the file nagios-3.0.1/daemon-init.in
> Find the function killproc_nagios
>
> Looks like something is missing.... At least mine looks like this straight
> form the tar-ball:
>
> killproc_nagios ()
> {
>
> kill $2 $NagiosPID
>
> }
>
> What do you think?
it is strange code :) .. $1 looks like it is always nagios and it is
always ignored, $2 is the signal to send and that is used properly ..
example from script ..
if status_nagios > /dev/null; then
printf "Reloading nagios configuration..."
killproc_nagios nagios -HUP
echo "done"
else
the script could use some syntax clean up for sure :) but that
function looks like it works correctly even though it is strange to
have kill_proc always passed an argument that is ignored.
- Max
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
More information about the Developers
mailing list