LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   boot on startup (https://www.linuxquestions.org/questions/debian-26/boot-on-startup-229134/)

j.vilon 09-10-2004 08:47 PM

boot on startup
 
where i put anyone file to start up on boot on debian? like rc.local

i dont have this on debian
anyone help me please?

HappyTux 09-10-2004 09:02 PM

Re: boot on startup
 
Quote:

Originally posted by j.vilon
where i put anyone file to start up on boot on debian? like rc.local

i dont have this on debian
anyone help me please?

Startup files go into /etc/init.d/ and you either make links yourself in the /etc/rc?.d/ directory or use update-rc.d to create them. You replace the ? with the runlevel you wish to start (2-5) the file in with 2 being the default in Debian. An example of the command from the man page update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 . this starts the script foobar in 2, 3, 4 and 5 then stops in 0, 1, and 6 on shutdown note the periods in the command are important you can get the same result by using update-rc.d foobar defaults all this as root of course.

j.vilon 09-11-2004 12:55 AM

where i see my runnivel?
tks

HappyTux 09-11-2004 01:11 AM

Quote:

Originally posted by j.vilon
where i see my runnivel?
tks

The /etc/inittab look at default runlevel it should be set to 2 and in Debian runlevels 2-5 are configured identically when software is installed unless you change them.


All times are GMT -5. The time now is 08:23 PM.