[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: update-rc.d: Removal of start and stop actions



On Sun, May 19, 2013 at 10:04:55PM +0200, Wouter Verhelst wrote:
> On 19-05-13 17:47, Roger Leigh wrote:
> > Hi,
> > 
> > With the release of wheezy, all systems should be using dependency-
> > based booting.  This makes the provision of static sequence ordering
> > pointless, but the update-rc.d interface still allows sequence
> > numbers to be passed for its start, stop and defaults actions.  They
> > just get ignored when using insserv, but they still need providing
> > unless you are using defaults with no options (which is recommended).
> > 
> > I'm planning on merging these two patches:
> > http://anonscm.debian.org/gitweb/?p=users/rleigh/sysvinit.git;a=commitdiff;h=3ed24526866d93e28ae3a501b131d5efe002f11a
> > http://anonscm.debian.org/gitweb/?p=users/rleigh/sysvinit.git;a=commitdiff;h=48daa9d5c8e28f8669e5b85cd369605c8254232c
> > 
> > These do the following:
> > - remove all support for non-dependency-based boot; in practice, this
> >   code hasn't been used for a couple of stable releases, since we always
> >   used the insserv code.
> > - remove support for start and stop; the options still exist, but they
> >   just invoke the "defaults" action.  This was already the case with
> >   insserv, but it's now explicit.
> > - the update-rc.d(8) manpage is updated to remove all the legacy
> >   documentation and examples.  This should make it clear what's
> >   currently supported, and it greatly simplifies the interface.
> > 
> > None of this should affect anyone since in practice there will be no
> > noticable difference other than the addition of a warning if the start
> > or stop actions are used.  I'm just bringing it up in case this will
> > cause anyone problems--in which case shout now before it's changed!
> 
> How does this relate to file-rc?

file-rc now uses insserv, so it's unaffected.  insserv support was
added to file-rc for wheezy in order that the static ordering stuff
could be removed for jessie.

However, the utility of file-rc in a dependency-boot-enabled world
is questionable.  While the configuration file can be hand edited,
in practice you really want to only use the update-rc.d interface to
so so (since the runlevel sequence ordering is dynamic).  Apart from
that, it works just fine.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800


Reply to: