script/service/command executes during shutdown
I want to shutdown a Linux service (Like tuxedo service) During shutdown command , i.e., When I have to poweroff my Liux (RHEL 4) server, then some third party installed service will be automatically shutdown before poweroff the server .
I have another question ,
During startup if I want to give some command/scripts (scripts which contains 1 or 2 lines) in "/etc/rc.local" then it will be automaticaly executed during startup the server .
Just Like this , is there any file Like "rc.local" which is executed only during shutdown the server .
Becaue I need to shutdown some third party service(Like tuxedo,cobol) first during shutting down the server .
If any .. plz informed .. ..