LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do i make scripts run at bootup and shutdown? (http://www.linuxquestions.org/questions/linux-general-1/how-do-i-make-scripts-run-at-bootup-and-shutdown-81118/)

BajaNick 08-11-2003 08:09 PM

How do i make scripts run at bootup and shutdown?
 
I just wrote my first scripts and i would like to know how to make them run at bootup or shutdown. Thanks

jailbait 08-11-2003 08:21 PM

In SuSE the place to put your boot scripts are:
/etc/init.d/boot.local

and the place to put your shutdown scripts are:
/etc/init.d/halt.local

Red Hat probably gives these files slightly different names just to be ornery.

unSpawn 08-11-2003 08:37 PM

In RH, place executable scripts in /etc/rc.d/init.d. Then make symlinks according to runlevel and place in startup/shutdown sequence in /etc/rc.d/rc(1-5).d and /etc/rc.d/rc(0,6).d for shutdown/reboot or see "man chkconfig" on how to automate that.


All times are GMT -5. The time now is 12:37 AM.