Start-Up Script & Shutdown/Kill Script needed
Hi,
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. arcsight_oracle arcsight_syslog arcsight_ips Thanks in advance Thanks Sandeep |
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: Code:
#! /bin/bash |
All times are GMT -5. The time now is 12:19 PM. |