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.