LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 08-05-2007, 01:19 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
auto startup script in AIX5.3,how to


Dear Friends ,

I have to create a script . I want this script initialize automatically when the server goes up . For this reason , I keep it into '/etc/init.d' , /etc/rc.d/rc3.d' and '/etc/rc.d/rc5.d' directory . But it does not working . Like Linux , I cannot find any option Like "ntsysv" . In this moment , i cannot understand the problem .

Plz help me regarding this issue, so that i can start my script during startup the server .
 
Old 08-06-2007, 09:45 AM   #2
misconfiguration
Member
 
Registered: Apr 2007
Location: Indianapolis, Indiana
Distribution: RHEL, Fedora, AIX, HP-UX, FreeBSD, Slackware
Posts: 62

Rep: Reputation: 19
There are a few ways to do this. I personally edit my scripts on *NIX and BSD systems and throw them in /etc/rc.local, at boot time this script is automagically execute.

You could also edit, /etc/inittab and customize the script to startup at certain run levels etc.

if you want the script to shut down after switching runlevels/rebooting etc edit.
/etc/rc.shutdown.
 
Old 08-22-2007, 10:59 AM   #3
ADeluiz
LQ Newbie
 
Registered: Aug 2007
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by shipon_97 View Post
Dear Friends ,

I have to create a script . I want this script initialize automatically when the server goes up . For this reason , I keep it into '/etc/init.d' , /etc/rc.d/rc3.d' and '/etc/rc.d/rc5.d' directory . But it does not working . Like Linux , I cannot find any option Like "ntsysv" . In this moment , i cannot understand the problem .

Plz help me regarding this issue, so that i can start my script during startup the server .
AIX default runlevel is level 2. So, you have to put your script inside rc2.d. Maybe that's why it's not working!

AIX inittab tells you the default runlevel at its first line. To check current runlevel, just check /etc/.initlevel.

Regards
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Startup alexwijn Linux - General 2 06-08-2006 09:47 PM
auto execute shell script on startup slackwbas Slackware 9 02-27-2005 10:26 AM
auto-completion - how does it work & can my script args auto-complete? BrianK Programming 1 06-11-2004 04:51 PM
How to auto load a script on KDE startup kam_kenneth Linux - Newbie 2 05-03-2004 04:55 PM
Getting firewall script to auto-run at startup lrt2003 Linux - Newbie 2 04-25-2004 02:28 AM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 07:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration