Reload configuration data without restart

Robert Hajime Lanning lanning at lanning.cc
Thu Mar 30 03:21:14 CEST 2006


<quote who="Shirley Wu">
> I checked the /etc/init.d/nagios script. The reload option actually
>  does the "killproc_nagios nagios -HUP".
>
> It seems that there's no way to get around it.

Wrong.  The "-HUP" does what has been asked.  It sends the HUP
POSIX Signal to the Nagios process.  Upon receiving this signal
the Nagios process re-examines it's configuration files.

Now, if you sent the "KILL" signal, then the process will die.

The "kill" function call (and command which calls the said function)
is just the method of delivering the signal to a process.

Signal number 9 (aka "KILL") has one outcome.  The process must die.
No ifs, ands, or buts.

All others can be caught within the program and cause specific actions
to happen.  Usually the "HUP" signal is used to re-read config files.
By default the "kill" command sends the "TERM" signal.  The "TERM"
signal is usually used to tell the program that you want it to
shutdown nicely, write transactions, close files, clean up its work
area, then exit on its own.

-- 
And, did Guloka think the Ulus were too ugly to save?
                                         -Centauri



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list