Operating System - HP-UX
1835067 Members
2787 Online
110073 Solutions
New Discussion

Re: infinite loop in rc script- cannot boot system

 
SOLVED
Go to solution
shaick_1
Occasional Advisor

infinite loop in rc script- cannot boot system

Hello ,

In HP-UX 11.11 machine, we added new rc script in /sbin/rc3.d/S99xxxx.rc, but accidently there was an infinite loop in the script. So I cannot boot the system.

Also tried to boot in single user mode, but it also runs the rc scripts and HANGs.

Is there any solution to skip the rc script execution in boot up process. Immediate help will be much appreciated.

Thanks,
Mathan.
5 REPLIES 5
Thierry Poels_1
Honored Contributor
Solution

Re: infinite loop in rc script- cannot boot system

Hi,

if it's and /sbin/rc3.d script it should not be run when boot into single user mode!
so try again.

hpux -iS

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Bernhard Mueller
Honored Contributor

Re: infinite loop in rc script- cannot boot system

Mathan,

get console access.
shutdown -r 0
at BCH main menu interrupt boot and enter
bo pri
answer y when prompted whether to interact with ISL
at ISL promt enter
ISL> hpux -is
wait for # prompt and rename the Start-link
# mv /sbin/rc3.d/S99xxxx.rc /sbin/rc3.d/do_not_use
# reboot

HTH
Regards,
Bernhard
Mark Grant
Honored Contributor

Re: infinite loop in rc script- cannot boot system

Networking should be set up already by S99xxx in rc3. Have you tried botting multi-uuser and telnetting to the box?

Alternatively, it might be possible to CTRL-C out of the thing.

Never preceed any demonstration with anything more predictive than "watch this"
Thierry Poels_1
Honored Contributor

Re: infinite loop in rc script- cannot boot system

hi,

there is indeed a key combination to break out of a rc script: but I was guessing at CTRL-Backspace ;-)

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
shaick_1
Occasional Advisor

Re: infinite loop in rc script- cannot boot system

Thanks for all your reply, The problem got fixed by booting single user mode.

Initially this method gives same result (hang in rc script ) but I used CTRL+C, CTRL+Backspace before the rc script starts.Now it allow to boot the single user mode.

Once again thanks for the fast reply.