PDA

View Full Version : Run at Boot?



zipster
07-11-2003, 12:08 AM
How do I get some script to run as part of the boot process - and be sure that it is the last thing run at boot? Oh, and this is on an installed knoppix -

:roll:

...even I know you cant do it off of the disc. :)

Stephen
07-11-2003, 01:42 AM
I don't know If it is the last script run but the file /etc/init.d/bootmisc.sh is where I usually put commands for my scripts to be run or settings to be set in.

Dave_Bechtel
07-12-2003, 11:46 PM
--I put things in a script /etc/init.d/boot.local, and ' ln /etc/init.d/boot.local /etc/rc5.d/S99bootlocal -sfn '.

--Don't forget to chmod +x it. This script will only be run in runlevel 5, but you can modify the desired runlevel to work on other systems (red hat, suse, etc.) This method will work with any distro that uses SYSV runlevels but doesn't have bootmisc.sh.


How do I get some script to run as part of the boot process - and be sure that it is the last thing run at boot? Oh, and this is on an installed knoppix -

:roll:

...even I know you cant do it off of the disc. :)