The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to record shutdown/startup messages Laksmi Linux 1 04-15-2008 06:44 AM
Shutdown scripts luft Linux 1 05-15-2005 03:17 AM
Shutdown Scripts zheng_soon Shell Programming and Scripting 4 07-08-2003 09:53 PM
rc scripts, do i need to kill them on shutdown? kymberm UNIX for Advanced & Expert Users 1 02-10-2003 06:57 AM
eth0 at startup/shutdown errors zorro81 UNIX for Dummies Questions & Answers 1 03-08-2002 09:24 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-23-2006
Registered User
 

Join Date: May 2006
Posts: 2
Stumble this Post!
Startup/Shutdown scripts

I understand that by putting in entries into the /etc/inittab file. We can actually call the our scripts during startup.

mkitab "start_server:2nce:sh /scripts/startserver.sh"

Would the system wait for startserver.sh finish executing before it goes to another entry? and how long would it wait before it aborts executing the startserver.sh.

For shutdown,

I gather from the ibm site and understand that /etc/rc.shutdown would be called during shutdown. We can place our shutdown scripts in rc.shutdown.

If the system is doing a reboot, would it execute rc.shutdown too?

Appreciate any inputs
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-23-2006
Registered User
 

Join Date: Mar 2006
Posts: 49
Stumble this Post!
In your mkitab line you specify "start_server:2: once:...". Therefore it will not wait on it, but rather spawn a shell and execute /scripts/startserver.sh within that shell. If you want inittab to wait for this script to finish before moving to the next line in inittab you should change "once" to "wait".
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0