1832984 Members
2974 Online
110048 Solutions
New Discussion

changing init level

 
Russell James Walicki
Occasional Contributor

changing init level

I have a B180 hp-ux 11.00 workstation that is hanging on the boot process trying to start an unecessary daemon. I'd like to edit the rc.config.d directory to fix this but I can't get the system to boot due to the handing daemon. How do you interrupt and change the boot process to boot to a different level - say single user mode?

rjw
5 REPLIES 5
Helen French
Honored Contributor

Re: changing init level

Try this:
1) While system boots, interrupt the normal boot process by pressing "any key"
2) Give "bo" or "bo isl" on the menu prompt.
3) Interact with ISL
4) On the ISL prompt, give this command:

ISL > hpux -is

This will boot the system in single user mode. You can change the config you need and reboot the system or start in multi user mode.
Life is a promise, fulfill it!
Pete Randall
Outstanding Contributor

Re: changing init level

During the boot process, you'll receive a message saying that you have 10 seconds to interrupt by pressing any key. Do so. Then enter the following at the ISL prompt: hpux -is. This will bring you to single user mode. Do a mount -a to get all your file systems mounted and available, edit your file and either reboot or do init 3 (or 4) to get to normal multi-user mode.


Pete

Pete
Khalid A. Al-Tayaran
Valued Contributor

Re: changing init level


Hi,

See your man inittab page....


then do init q to force init deamon to scan for changes..
James R. Ferguson
Acclaimed Contributor

Re: changing init level

Hi:

You should be able to terminate the offending script by entering CNTRL\ (hold the control character and press the backslash key.

To truly enter single user mode you need to boot into it, although for your purposes, and 'init s' should suffice.

Regards!

...JRF...
Michael Steele_2
Honored Contributor

Re: changing init level

Regarding "...trying to start an unnecessary daemon...", use:

<|> (* pipe, all simultaneously entered *)

...to bypass any hanging daemon during boot up.

From single user mode:

reboot
interrupt boot up
bo pri
interact with IPL
ISL> 'hpux -is'

# sh -x /etc/rc.config

-and-

# init 1,2,3

...to debug boot up.

Note any duplicate files in /etc/rc.config.d.
Support Fatherhood - Stop Family Law