![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can SQL Server call be made from unix sh | sspreethi | Shell Programming and Scripting | 0 | 01-29-2008 05:44 PM |
| here document to automate perl script that call script | hogger84 | Shell Programming and Scripting | 3 | 10-22-2007 11:15 AM |
| Server rebooting frequently | srikanthus2002 | UNIX for Dummies Questions & Answers | 5 | 07-03-2007 06:52 AM |
| Solaris 9 server hangs, when rebooting | smohd | UNIX for Advanced & Expert Users | 3 | 09-03-2002 03:24 PM |
| Server name + IP address removed from host table after rebooting | FIRE | UNIX for Advanced & Expert Users | 3 | 07-25-2002 04:42 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Quote:
You mean that if you created the file like Start.ksh and store it in the /etc/rc.d it will call automatically when server starts up not inserver stop. And if you create the file like KStop.ksh and store it in same path, it will call automatically when the server stop not in server start up... Is my understanding is correct?????? |
|
||||
|
In AIX there is a file /etc/inittab, which is first utilized, then,for each runlevel, there is a directory in /etc/rc.d which contains start/stop-scripts. You could add such a start/stop-script as fpmurphy suggested (this is the BSD way to do it), you could add a line to /etc/inittab (the SysV way to do it) or you could start it as a subsystem vie the System Resource Controller, which is a AIX speciality. Each possibility would lead to the script being executed on different points in time and different circumstances - every startup, every time a certain runlevel is entered, etc., etc.. All this doesn't even take into account that your system might be part of a high-availability cluster, where even more possiblities would arise because it could be started every time a certain cluster event triggers: the machine becomes promoted to the "working" part of the cluster, the machine becomes the non-working part as another machine takes over, etc., etc..
Out of curiosity: why didn't you ask this question in my living room, the AIX forum? I hope this helps. bakunin |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|