[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ubuntu-users
Subject:    Startup Scripts
From:       peter.garrett () optusnet ! com ! au (Peter Garrett)
Date:       2005-09-06 3:16:48
Message-ID: 20050906131648.10f45d17.peter.garrett () optusnet ! com ! au
[Download RAW message or body]

On Mon, 5 Sep 2005 22:32:58 -0400
Craig Hagerman <craighagerman at gmail.com> wrote:

> On 9/5/05, David M. Carney <carney1979 at gmail.com> wrote:
> > 
> > If I want to add my own startup script to be run at bootup, how do I go
> > about doing it?
> > 
> > 
> Write a script. put it in the /etc/init.d/ directory.
> Lets say you called it FOO. You then run
> 
> % update-rc.d FOO defaults
> 
> You can check out 
> % man update-rc.d for more information. It is a Debian utility to install 
> scripts. The option "defaults" puts a link to start FOO in run levels 2, 3, 
> 4 and 5. (and puts a link to stop FOO into 0, 1 and 6.)
> 
> By the way, can anyone tell me what command I can use to tell what run level 
> I am currently in?
> 
> Craig
> 

The command is "runlevel", funnily enough :)
Mind you, since Ubuntu follows Debian practice, you are likely to see "2" , unless \
you have done an "init 1" or something.

Peter
-- 

Linux User #343161 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic