peter.garrett at optusnet.com.au
Tue Sep 6 03:16:48 UTC 2005
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?
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.
Linux User #343161
More information about the ubuntu-users