How to add a startup program in Linux??
Hello All,
I have a execuatble shell program that I need to run upon startup: Code:
prompt$ cat program.sh Also .. I am using Red Hat 9(for various reasons). I know that in Fedora Core 6, I could just simply add the program thru, preferences->more prefernces->session->starup programs. However on this particular machine, I have no gui, so I must figure out a way to maually add it(ie. thru the commmand line). Thanks again and Take Care |
Hi,
Does your init script have command to execute rc.local? Happy Penguins! |
Hello,
Thanks for relplying ... How would I find out if my init script has a command to run rc.local. How do I find this out and correct it if necessary?? Thanks again and Take Care |
Depending on what teh script is for, and how critical it's place in the startup process is, you can always add it to crontab using
@reboot /path/program.sh I'm surprised that an entry in rc.local like /path/program.sh doesn't work. To check if rc.local is running, try adding something like touch /home/your_username/test Does program.sh run from the command line (ie is it executable)? and see if it's there after a reboot. |
All times are GMT -5. The time now is 06:27 PM. |