Autostart an application after CentOS 4.4 reboots
I am fairly new to linux. We have a machine running CentOS 4.4 and sometimes the machine has to be rebooted. Each time after the reboot, I have to SSH in and manually restart one of our application.
I have been reading about doing this online and I am a little confuse.
Seems like there are multiple possibilities for starting things up.
My finding suggest using the inittab file. Then my question is what runlevel do I pass in? Should I use runlevel 1, 2, 3, or 5? Once the runlevel is determine, then how should I name my startup script? I know to use "S" but what number should I give it?
Or, another way to approach this is to put my autostart script in the /etc/rc.local file?
Much thanks for any suggestions.