LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   starting the script at boot time (https://www.linuxquestions.org/questions/mandriva-30/starting-the-script-at-boot-time-264404/)

hudy_rob 12-09-2004 07:11 AM

starting the script at boot time
 
Hi all!
I would like to start a bash script (mine own program) at boot time, so it starts like other ones from /etc/init.d/.

many thanks - Rob

opjose 12-09-2004 07:25 AM

You could adapt and existing /etc/init.d script, selecting from one of the shorter ones, if you want something that puts up the [OK] messages, etc. (hint: Use the same includes!)...

Or a much easier solution is to append whatever you need to /etc/rc.d/rc.local which is the usual place for this kind of thing.

cmfarley19 12-09-2004 08:42 AM

I have a little howto for this on my site.
My Linux Notes
Hope this helps.

ernie 12-09-2004 10:08 AM

If you have a script you want to run when someone logs in, you can call it in /etc/profile. If you want it to run only at system start, add it to the end of /etc/rc.local as directed above.

HTH,

hudy_rob 12-09-2004 10:29 AM

Thank you very much guys! Rob


All times are GMT -5. The time now is 07:35 AM.