1829481 Members
1993 Online
109991 Solutions
New Discussion

Re: Sys V Init

 
Simon Hawkins
Occasional Advisor

Sys V Init

Hi,

I'm the sys admin of the HP9000 and I need to find a run-level editor or Sys V Init.

When the machine boots up, it auto-logs in to the CDE desktop, and i'd like it to login at the command line. In RedHat you just change runlevel it boots with, or use SysVInit. How do you do this in HPUX?

- Simon
7 REPLIES 7
Andy Monks
Honored Contributor

Re: Sys V Init

Look in the /sbin/rc3.d directory and remove the link 'S990dtlogin.rc'

That assumes your in run level 3 of course. There is also a link in rc5.d.

Andy
Simon Hawkins
Occasional Advisor

Re: Sys V Init

Thanks for that!

If when the machine boots you get the X logon screen, how, when you logon, do you get the HP to run .profile and not the .dtprofile. If you edit the .dtprofile it says you can ask it to run .profile instead, but it doesn't work....

Is there such a thing as an X sys V editor for UNIX?


- Simon
Andy Monks
Honored Contributor

Re: Sys V Init

It only runs .dtprofile, if you login via cde. Logging in via X I think it runs .mwmrc (assuming mwm as your window manager), or .xinitrc
Steven Sim Kok Leong
Honored Contributor

Re: Sys V Init

Hi,

From the CDE login, you can click on "Options" and select "Command Line Login" to access the CLI interface.

If you wish to change the run-level, you should modify /etc/inittab and change the initdefault. The new runlevel will be activated at the next reboot.

Regards.

Steven Sim.
Venu_2
Regular Advisor

Re: Sys V Init

Hi,

Procedure 1 :

As a part of the HPUX bootup the init process reads the entry stated below in the inittab file.

init:3:initdefault:

3(Three) indicates the run level to which
should bootup.

CDE is started in level 3.

Incase you donot want CDE, change the 3 to 2.

Procudure 2:

/sbin/rc3.d/S990dtlogin.rc

This is the script for starting DCE.
rename the script to anything other than a capital S at the start

example: mv S990dtlogin.rc s990dtlogin.rc

You can follow either of this

regards

venu





Dan Am
Frequent Advisor

Re: Sys V Init

you can get CDE to run .profile on login by
seting

DTSOURCEPROFILE=true

in your .dtprofile
do what you can. don't if you can't.
Dan Am
Frequent Advisor

Re: Sys V Init

you can get CDE to run .profile on login by
seting

DTSOURCEPROFILE=true

in your .dtprofile
do what you can. don't if you can't.