Debian equivalent

Charles Hallenbeck chuckh at hhs48.com
Tue Mar 21 08:22:40 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Dan,

Nope, no rc.local.  Here is what I did:

Go into /etc/init.d and create a script containing whatever you want to 
do in an rc.local. I called mine "mystartups" but I suppose you could 
even call it "rc.local" if you want. Remember that you do not yet have a 
reasonable path established when this script will execute.Give it 
execute permissions.

Next, also as root, run update-rc.d to add this script to your normal 
bootup scripts. You can specify which runlevels it should start in or 
stop in, or just use the Debian defaults, which will be okay. But you 
have to give it a priority, 99 will make it the last thing to execute on 
startup. You can check the update-rc.d man page for details, but as near 
as I can recall without checking, it might look like this:

update-rc.d mystartups defaults 99

You now have a bunch of other scripts in your varius runlevel 
directories of the form K99mystartups and S99mystartups which will kill 
or start the mystartups script as appropriate. Actually it doesn't make 
sense to kill such a script, it will just run it again anyway, unless 
within your script you check to see what parameter it was run with.

HTH

Chuck




- -- 
The Moon is Waning Gibbous (63% of Full)
Get downloads from http://www.mhcable.com/~chuckh
  and remember, INFORMATION WANTS TO BE FREE!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEH/4gXnuiIOyDVQURAgfnAJ9KCGYKGkyTxcwfz6hYhfEIk463SQCfYQHc
iS6mAp4wTRRkbp3pnTO5yyw=
=O1lU
-----END PGP SIGNATURE-----




More information about the Speakup mailing list