LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   start program script when rebooting (https://www.linuxquestions.org/questions/linux-general-1/start-program-script-when-rebooting-60956/)

KaktusKnight 05-21-2003 05:47 AM

start program script when rebooting
 
How can I start my program scripts when I am rebooting the system?

I have a webserver and I do not want to log in to start the program scripts after rebooting.

I do have a login script that starts the program scripts but to make that work I have to log in to the system.

But as I want to skip the logging in every time after a reboot there must be a way to start the program scripts when the computer reboots?

thanks in advance

manthram 05-21-2003 06:18 AM

put the script in '/etc/rc.d/rc.local'

or make a executable file and put it in '/etc/rc.d/' directory

david_ross 05-21-2003 01:15 PM

What distro are you using - there should already be a startup script somewhere that just needs enabled.

KaktusKnight 05-22-2003 01:41 AM

I am using redhat 9, suse 7.2 and suse 8.1.

8.1 for production and redhat 9 and suse 7.2 for testing..

thanks again

david_ross 05-22-2003 12:29 PM

In redhat just type:
chkconfig httpd on

to enable httpd to start on each boot. Then to start it the first time:
service httpd start


All times are GMT -5. The time now is 04:40 AM.