Re: File naming of scripts in /etc/init.d
I noticed someone was wrong on the Internet, and decided to follow up on
this old thread.
[Steve R. Petruzzello]
> 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?
Before concurrent running of init.d scripts were implemented in sysv-rc,
the .sh scripts would be sourced by /etc/init.d/rc and /etc/init.d/rcS
while the non-.sh scripts would be executed. This distinciton were
removed when sysv-rc started to run scripts in parallell, as it no
longer made sense.
> So my question was not too stupid :)
Not at all. :)
--
Happy hacking
Petter Reinholdtsen
Reply to: