Stop the application before shutdown the server ..
I have application need to be started with the system and also need to be stop before shutdown the system
This is the path of the application:
/usr/appstart
/usr/appstop
to start the application with the startup of the system I have mentioned this path /usr/appstart in this file /etc/rc
but my question is ?
how to can I let the system stop my application before shutdown
I mean if I type shutdown I want the system to stop this application /usr/appstop before shutdown the server .
is there any file similar rc file need to mentioned that path in it to stop it before start shutdown process .
Pls advice ...