Re: File naming of scripts in /etc/init.d
On Mon, Jun 25, 2012 at 03:59:30PM +0200, Steve R. Petruzzello wrote:
> Le 25-06-2012, à 14:47:58 +0100, Roger Leigh (firstname.lastname@example.org) a écrit :
> > On Mon, Jun 25, 2012 at 01:51:36PM +0200, Steve R. Petruzzello wrote:
> > > I noticed that some scripts in /etc/init.d/ are suffixed by .sh and some are
> > > not. [...] All except console-screen.sh, hwclock.sh and keymap.sh are from
> > > the initscripts package.
> > >
> > > So 1) nowhere is .sh suffixing mentioned and 2) some scripts are not named by
> > > their package's name (hwclock.sh is part of the util-linux package). Is there
> > > a reason for this?
> > Nowadays, it's essentially the case that
> > - scripts with a .sh suffix are run from rcS
> But not all scripts in /etc/rcS.d/ have a .sh suffix (for instance S09mdadm-raid).
No, it's not a strict rule, just historic practice. If we were to
do it over today, it's unlikely we would use the suffixed names.
.''`. 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