The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 SuSE 1 04-15-2008 09:44 AM
Shutdown scripts luft SuSE 1 05-15-2005 06:17 AM
Shutdown Scripts zheng_soon Shell Programming and Scripting 4 07-09-2003 12:53 AM
rc scripts, do i need to kill them on shutdown? kymberm UNIX for Advanced & Expert Users 1 02-10-2003 10:57 AM
eth0 at startup/shutdown errors zorro81 UNIX for Dummies Questions & Answers 1 03-08-2002 01:24 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-23-2006
vincente vincente is offline
Registered User
  
 

Join Date: May 2006
Posts: 2
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
  #2 (permalink)  
Old 05-23-2006
sprellari sprellari is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 49
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".
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0