Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Debian update-rc.d missing default runlevel info or problem with LSB dependency booting?

3,340 views
Skip to first unread message

schr...@gmail.com

unread,
Aug 3, 2014, 3:01:34 PM8/3/14
to
I have a vendor provided package that places a script in /etc/init.d (lets call it "myscript")
Install directions say to enter command:
update-rc.d myscript defaults

The problem is this fails to create any symbolic links in the /etc/rc(n).d run-level directories

update-rc.d -n myscript enable
shows an error message that "myscript Default-Start contains no run levels"

Supplied file myscript contains lines:
# Default-Start:
# Default-Stop:

If I edit myscript to contain:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6

and repeat the: update-rc.d myscript defaults
it works.

Debian docs state "By default update-rc.d will start services in each of the multi-user state runlevels (2, 3, 4, and 5) and stop them in the halt runlevel (0), the single-user runlevel (1) and the reboot runlevel (6)."

However my Debian system, it appears the command "update-rc.d myscript defaults" is unaware of what the default runlevels are.

What am I missing? Why does update-rc.d not appear to know what the "defaults" run levels are?

Debian "wheezy" 7.6.0-i386-netinst.iso

Richard Kettlewell

unread,
Aug 6, 2014, 4:42:23 AM8/6/14
to
schr...@gmail.com writes:
> I have a vendor provided package that places a script in /etc/init.d
> (lets call it "myscript")
> Install directions say to enter command:
> update-rc.d myscript defaults
>
> The problem is this fails to create any symbolic links in the
> /etc/rc(n).d run-level directories
>
> update-rc.d -n myscript enable
> shows an error message that "myscript Default-Start contains no run levels"
>
> Supplied file myscript contains lines:
> # Default-Start:
> # Default-Stop:

That’s asking for the service not to be started or stopped in any
runlevel. Obviously this doesn’t make any sense.

> If I edit myscript to contain:
> # Default-Start: 2 3 4 5
> # Default-Stop: 0 1 6
>
> and repeat the: update-rc.d myscript defaults
> it works.
>
> Debian docs state "By default update-rc.d will start services in each
> of the multi-user state runlevels (2, 3, 4, and 5) and stop them in
> the halt runlevel (0), the single-user runlevel (1) and the reboot
> runlevel (6)."

That is out of date, see the update-rc.d man page for a description of
its actual behavior.

--
http://www.greenend.org.uk/rjk/

john.h...@gmail.com

unread,
Oct 3, 2014, 1:51:14 PM10/3/14
to
What was that about my grandma being able to run Linux?

Gee, Debian makes everything so simply. Why don't more Blokes convert over to Debian - LOL.

Linux - It either works out of the Box, or It don't. There is no in between.

Remember, the unstable Debian is Stable because THEY say that it is. Now, isn't that comforting?

The Natural Philosopher

unread,
Oct 3, 2014, 2:15:03 PM10/3/14
to
On 03/10/14 18:51, john.h...@gmail.com wrote:
> On Sunday, August 3, 2014 3:01:34 PM UTC-4, schr...@gmail.com wrote:
a very out of date trollspam



--
Everything you read in newspapers is absolutely true, except for the
rare story of which you happen to have first-hand knowledge. – Erwin Knoll
0 new messages