Start-Up Script & Shutdown/Kill Script needed
We have couple of application services on Red Hat Linux box. I am planning to have start up script, which will be executed when the server boots up and all the application services mentioned in the script should start after executing the script.
In the same way, a shut down script, which is executed when the server is shutting down and all my application services will stop while server is shutting down.
I have seperate team to deploy this. But we have to provide them the scripts. I am not gud at Linux. Could any one please sent me the sample script that acomplissh my requirements.
Just imagine the application services as below and give me sample script.
Thanks in advance
You don't want separate scripts for stopping and starting. You want to create one script, put it in /etc/init.d, and set it up for the proper runlevels with the chkconfig command.
A sample script would look something like this:
|All times are GMT -5. The time now is 03:14 AM.|