Click to See Complete Forum and Search --> : Debian startup file?


Lend273
12-05-2000, 08:50 PM
I want to add a line to my startup file. I had redhat 7 and the file I used then was
"/etc/rc.d/rc.local".
Since I cant find that file in my Libranet
Debian system, what would be an equivalent
file?
Thanks for the help, as always http://www.linuxnewbie.org/ubb/smile.gif
Len

rod
12-05-2000, 09:03 PM
/etc/init.d is what your looking for

vvx
12-05-2000, 09:14 PM
Debian doesn't have an rc.local, either make a script for whatever or create a rc.local.. I prefer the former method, but if you insist on making an rc.local, you'd just do something like this. Make a file named rc.local in /etc/init.d/, the first line would be #!/bin/sh .. Anything after that will be executed. Make sure this file has the executable bit and then symlink to it from your runlevel, probably run level 2, which is in /etc/rc2.d/, now the symlink needs to start with S and have a two digit number, the greater the number the later it's executed in the script process, for rc.local you'd probably want something like 99, so your symlink might be named S19rc.local. It would give ya an rc.local, but once again I don't really like that method.

rod
12-05-2000, 09:20 PM
Thanks for a much needed clarification... vvx.