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 |
put the script in '/etc/rc.d/rc.local'
or make a executable file and put it in '/etc/rc.d/' directory |
What distro are you using - there should already be a startup script somewhere that just needs enabled.
|
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 |
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. |