meaning of command

Asked by aneesh

What happened when we type the command " update-rc.d blah defaults" in ubuntu terminal

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
wojox (wojox) said :
#1

It will re-add a service that you had previously removed. For instance if you did not want the Gnome Display Manager to start and instead load a terminal you would run:

sudo update-rc.d gdm remove

To re enable it you would run:

sudo update-rc.d gdm defaults 13 01

Did you have a certain service you needed help with?

Revision history for this message
aneesh (aneesholv) said :
#2

sudo update-rc.d gdm defaults 13 01 In this command what is meant for 13
01 number

On Mon, Apr 12, 2010 at 6:54 PM, wojox <<email address hidden>
> wrote:

> Your question #107163 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/107163
>
> Status: Open => Answered
>
> wojox proposed the following answer:
> It will re-add a service that you had previously removed. For instance
> if you did not want the Gnome Display Manager to start and instead load
> a terminal you would run:
>
> sudo update-rc.d gdm remove
>
> To re enable it you would run:
>
> sudo update-rc.d gdm defaults 13 01
>
> Did you have a certain service you needed help with?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/107163/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/107163
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
------with regards,

                      Aneesh.T.V
                      Mob:9544067525

Revision history for this message
Sam_ (and-sam) said :
#3

For the record,
suggestion about 'update-rc.d' came from here:
https://answers.launchpad.net/ubuntu/+question/106983

The 'meaning' of cmds are usually available through manpages, such as:
man update-rc.d
quote:
update-rc.d updates the System V style init script links /etc/rcrunlevel.d/NNname
       whose target is the script /etc/init.d/name. These links are run by init when it
       changes runlevels; they are generally used to start and stop system services such as
       daemons. runlevel is one of the runlevels supported by init, namely, 0123456789S,
       and NN is the two-digit sequence number that determines where in the sequence init
       will run the scripts.

http://manpages.ubuntu.com/cgi-bin/search.py?title=update-rc.d

Revision history for this message
wojox (wojox) said :
#4

It's 13th to start up, and 1st to shut down. And the leading 0 on 01 is important, because update-rc.d only works with two digit numbers.

After reading sam's link, why don't you just add your shell script to your start-up applications?

Can you help with this problem?

Provide an answer of your own, or ask aneesh for more information if necessary.

To post a message you must log in.