Bug#408231: [Pkg-nagios-devel] Bug#408231: nagios2-common: the main
script /etc/init.d/nagios2 has commented lines about retrying
to stop the service
mteodor at gmail.com
Thu Jan 25 10:08:09 CET 2007
On 1/24/07, Marc Haber <mh+debian-packages at zugschlus.de> wrote:
> On Wed, Jan 24, 2007 at 12:47:40PM +0200, Teodor wrote:
> > In the main script /etc/init.d/nagios2 we have these lines:
> > ...
> > In most cases the 'stop' action is working only with the SIG_TERM (15)
> > send to the running process, but it would be good to retry stopping the
> > service in the case the first attempt failed.
> > It seems to me that the code is commented by mistake, otherwise it would
> > be deleted from the main script.
> I suspect that I copied that code from some other packages and then
> left it commented out just in case that nagios needs this more
> elaborate handling as well.
Do you consider that 'nagios' doesn't need stop action retrying after
the first attempt?
> fwiw, I did not find any revision of the init script in svn that had
> this code present _and_ enabled. I am now tempted to treat this as a
> non-bug and close it.
> What exactly do you suggest doing?
I suggest to do one of the following:
1. if this code is not necessary it should be removed from the script;
2. if the first attempt to stop nagios fails many times it should be
included in the script.
Thanks for your quick response.
More information about the Pkg-nagios-devel