![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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:2 nce: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 |
|
||||
|
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".
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|