[Pkg-sysvinit-devel] Bug#546532: Bug#546532: Bug#546532: sysv-rc: invoke-rc.d does not default to a sensitive behaviour when no start o stop symlink is found

Henrique de Moraes Holschuh hmh at debian.org
Sun Sep 13 23:46:39 UTC 2009


On Sun, 13 Sep 2009, Raphael Geissert wrote:
> On Sunday 13 September 2009 17:25:25 Henrique de Moraes Holschuh wrote:
> > On Sun, 13 Sep 2009, Raphael Geissert wrote:
> > > Package foo ships an init script called foo and starts on the default
> > > runlevels; but the administrator wants to manually start it, never
> > > automatically, so she rm /etc/rc*.d/S*foo (because she is not aware of
> > > the warning of update-rc.d). The foo package also ships a logrotate rule,
> > > which
> >
> > Counter example: packages in rcS.d like udev ship scripts with no
> > information about what shold be done on any runlevel other than S.
> >
> > Now you try to upgrade it, and it gets stopped and not restarted.  Bang!
> 
> Not quite valid because it would match
>     elif testexec ${SSLINK} ; then
>         RC=104
> 
> and would therefore be executed.

Hmm... so we have a work-around for that already?  (looks in the source)
well, I will be.  We do, and it is likely that I was the one who wrote
that code, even...

Objections lifted.  Just in case, I'd recommend testing that start and
restart work out-of-runlevel for S scripts with the patch applied, but I
think we should apply the patch.

Thanks, Raphael.  And I apologise for not reading the invoke-rc.d code
before objecting to the patch.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh





More information about the Pkg-sysvinit-devel mailing list