Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop script on AIX

Status
Not open for further replies.

ranjit

Technical User
Apr 14, 2000
131
GB
Where is the best place to put an application stop script on AIX? Thereby enabling the application to shutdown cleanly when the system is rebooted?

I understand for a start script - the advice is /etc/rc.local followed by the appropriate /etc/inittab entry using run level 2
 
look at shutdown in the commands manual, i think it executes script file /etc/rc.shutdown. one thing to be aware of, if this script file does not exit with return code 0, shutdown stops.

gary.
 
AIX will exec /etc/rc.shutdown if it exists, otherwise it only gracefully stops itself. put your stop scripts, or calls to them, in there.

IBM Certified -- AIX 4.3 Obfuscation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top