Author |
Message
|
PankajS |
Posted: Fri May 13, 2005 5:09 am Post subject: Where Do I put The Start Up Script In AIX V5.3 |
|
|
Voyager
Joined: 27 Dec 2004 Posts: 82
|
Hi Friends,
I want to start the Queue Manager, Listener at the time of reboot.
Probably,I have identified the place to put the script and that is etc/rc.d/rc.local.
But i do not find this file anywhere in my folder structure.
As per my understanding,this is system file...
any way ..Do i need to create this file.If yes ..do I need to register it's path some where(Probaly etc/inittab)...
Is there any other location where I can put my script and it will be invoked at the time of reboot.
Waiting for reply  |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri May 13, 2005 5:58 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You should ask your system administrator. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vennela |
Posted: Fri May 13, 2005 5:59 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
sjensen |
Posted: Fri May 13, 2005 6:02 am Post subject: |
|
|
Centurion
Joined: 18 Dec 2003 Posts: 134 Location: London
|
Hi,
AFAIK you should create a /etc/rc.mqm script to do the work and then use
so it gets run at boot time.
There should also be a /etc/rc.shutdown script - you should add stopping the Queue Manager etc to that.
Cheers
Stefan |
|
Back to top |
|
 |
xxx |
Posted: Sun May 15, 2005 7:21 pm Post subject: |
|
|
Centurion
Joined: 13 Oct 2003 Posts: 137
|
Simple answer is you should place that script in /etc/inittab,
as this script runs as root , you should modify the scrit so that it
runs su - mqm " /etc/rc.mqm " or simlar , where rc.mqm is the actual script you use to start mqm ,
mkitab is a utility you can use to include startup script in inittab, lsitab is to list the entries |
|
Back to top |
|
 |
PankajS |
Posted: Sun May 15, 2005 8:08 pm Post subject: |
|
|
Voyager
Joined: 27 Dec 2004 Posts: 82
|
Hi friends,
Thanks for helping me in solving the problem.
I checked out all the options you have recommended...Link from vennela (http://www.mqseries.net/phpBB2/viewtopic.php?t=19570&highlight=rc2 )was a great help......
Things work out as they are mentioned by 'clindsey' in his/her(?) input in that link.
Take care  |
|
Back to top |
|
 |
|