I have a shell script which restart the application. I use following syntax to execute the same.
$./ams_rc stop --> To stop application
#./ams_rc start --> To start application.
As of now it is done manually, and i want to automate the same.
I want to write a shell script which will run from cron and do the above things. I.E. It will frist stop the application, sleep for 30 seconds and then again start the application.