Click to See Complete Forum and Search --> : executing a program at startup?


Nick Wilson
08-09-2001, 05:45 PM
Hi guys,
I've written my first proper program in Linux (only 2 lines starting httpd and mysql but a landmark nonetheless!) and I'd like it to run at boot-up.
How can I do that? and how can I include a program in the 'path' so I don't have to go ./program all the time?

Much thamks


Nick Wilson

thephreak6
08-09-2001, 05:46 PM
which distro do you have?

Nick Wilson
08-09-2001, 05:47 PM
RH7.1


Nick

Malakin
08-09-2001, 08:19 PM
You can run startup scripts from "/etc/rc.local" or just add them right in there.
You can add a new path by editting "$HOME/.bashrc", log out and back in for it to take effect. I put all my scripts in /usr/local/bin and put that in the path.
If you have a program that runs from an unusual place you can link it to a directory in the path.