February 2, 2009
Do you have a script/application that you want it running all the time, if it crashed then it auto restrart, auto launch on reboot ?, I have a php script that must run all the time, it do telnet to a port on another server and do some commands on that port… anyway i want this to be running all the time, i did it easily using respawn in inttab, this is the steps:
idlE ~ # vi /etc/inittab
at the end of the file add the following:
change /root/scripts/sendSMS.sh to your script/application path, then save and quit.
now you need to reread inittab file using the following command:
idlE ~ # init q
thats all, check the running process.