1834149 Members
2246 Online
110064 Solutions
New Discussion

Re: x start on boot

 
SOLVED
Go to solution
antonio di paolo
Occasional Advisor

x start on boot

I needed to reboot my 11.0 hp-ux b2000.
After rebooting X didn't start and now i can work only in console mode. I have no dtlogin process runnig.
Other services, also network's, seem work properly.
I have, also, a 10.20 hp-ux b1000 working good, an there are two dtlogin processes running.
I had the same problem whit an old, now not running, 9.xx hp-ux 715.100 .
Why i have the problem? How can i solve it?

grazie
carpe diem
23 REPLIES 23
Keith Bryson
Honored Contributor

Re: x start on boot

Hi

Check your run-level in /etc/inittab (line init:x:initdefault:). You can also use 'who -r'.

You should be in run-level 5.

Keith
Arse-cover at all costs
Eric Antunes
Honored Contributor

Re: x start on boot

Hi Antonio,

Check if you have the dtlogin.rc file in /sbin/init.d

Best Regards,

Eric Antunes

Each and every day is a good day to learn.
antonio di paolo
Occasional Advisor

Re: x start on boot

who -r :i'm in run level 3
i have a 555 bin bin file /sbin/init.d/dtlogin.rc
grazie
carpe diem
Eric Antunes
Honored Contributor

Re: x start on boot

Are you able to run it (?):

#/sbin/init.d/dtlogin.rc start
Each and every day is a good day to learn.
Eric Antunes
Honored Contributor

Re: x start on boot

Or is it already running (?):

#ps -ef|grep dtlogin
Each and every day is a good day to learn.
Keith Bryson
Honored Contributor

Re: x start on boot

Hi

Set your run-level to 5 in /etc/inittab. Re-boot or do a 'init 5'.

Keith
Arse-cover at all costs
antonio di paolo
Occasional Advisor

Re: x start on boot

tank for your suggestion. I'm ready to start manually /sbin/init.d/dtconfig.rc start that is present.
Why in reebooting dtconfig.rc didn't start?
I'm at run level 3.
the 10.20 workstation works good and is at init level 3, also.
Hoa can it happens if i switch the
init:3:initdefault:
to 5?
grazie
carpe diem
Keith Bryson
Honored Contributor

Re: x start on boot

Run-level 5 is the Unix standard for X windows start-up. Someone has probably added an additional symbolic link for the dt rc scripts into other rc run-level directories (/sbin/rc1.d /sbin/rc2.d /sbin/rc3.d).

You should really look at booting the server to run-level 5 (i.e. make the change in /etc/inittab) as this is best-practice. I'd almost bet my life on it that it'll work then.

Keith
Arse-cover at all costs
Keith Bryson
Honored Contributor

Re: x start on boot

You can also try this to see where your links are for dtlogin:

find /sbin -name "*dtlogin.rc"

Maybe you are missing the rc3.d link?

Keith
Arse-cover at all costs
Keith Bryson
Honored Contributor

Re: x start on boot

If you're missing the rc3.d link, try this:

ln -s /sbin/init.d/dtlogin.rc /sbin/rc3.d/S990dtlogin.rc

All the best - Keith
Arse-cover at all costs
john kingsley
Honored Contributor
Solution

Re: x start on boot

LINUX boxes should be running at run level 5, not HP-UX. If your HPUX 11.x box is running at run level 3, you are okay. It is possible that someone may have created new run levels on this machine, but by default, HP-UX 11.x systems only have 3 run levels. I think to run VUE, HPUX 10.2 boxes used to boot to run level 4.

Do check to make sure you have the file /sbin/rc3.d/S990dtlogin.rc linked to /sbin/init.d/dtlogin.rc

Are you seeing any errors in your log files?
/var/X11/Xserver/logs or
/var/dt
Alex Glennie
Honored Contributor

Re: x start on boot

JK is correct : default for CDE at 10.20 was 3 for VUE it was 4.

If there are no dtlogins running at all I suggest you :

a) ioscan -fnC graphics : ensure the card is claimed.

b) try starting X -> /usr/bin/X11/X : 0 (use to stop the Xserver .... if this does not work ... do you see errors ?

c) check rc.log and syslog and /var/dt/Xerrors for clues ... if you boot to run level 4 does VUE start if it is installed ?

d) check /etc/rc.config.d/desktop contents ?
Eric Antunes
Honored Contributor

Re: x start on boot

I agree: I'm also at level 3 and my dtlogin is always running after a restart...
Each and every day is a good day to learn.
Keith Bryson
Honored Contributor

Re: x start on boot

Yep, sorry, my boob (I unfortunately had been in Linux mode all day!). Antonio, still check the rc3.d link is present and correct!!

TTFN - Keith
Arse-cover at all costs
antonio di paolo
Occasional Advisor

Re: x start on boot

init:3:initdefault:
ioin::sysinit:/sbin/ioinitrc >/dev/console 2>&1

...OMISSIS.....

cons:123456:respawn:/usr/sbin/getty console console # system console
#ttp1:234:respawn:/usr/sbin/getty -h tty0p1 9600
#ttp2:234:respawn:/usr/sbin/getty -h tty0p2 9600
#ttp3:234:respawn:/usr/sbin/getty -h tty0p3 9600
#ttp4:234:respawn:/usr/sbin/getty -h tty0p4 9600
#ttp5:234:respawn:/usr/sbin/getty -h tty0p5 9600
ems1::bootwait:/sbin/rm -f /etc/opt/resmon/persistence/runlevel4_flag
ems2::bootwait:/sbin/cat /etc/opt/resmon/persistence/reboot_flag
ems3:3456:wait:/usr/bin/touch /etc/opt/resmon/persistence/runlevel4_flag
ems4:3456:respawn:/etc/opt/resmon/lbin/p_client
#a0:3:respawn:/usr/lbin/uucp/uugetty -r -t 60 -h ttyd0p_hw0 19200
#a0:3:respawn:/usr/lbin/uucp/uugetty -r -t 60 -h tty0p0 19200
a0:3:respawn:/usr/sbin/getty -h ttyd0p0 19200



This my inittab. as you see, i have last entry a0 level 3 ( a try to connect a modem to my workstation).
Is this the reason of fail?
In my system in /sbin/rc3.d directory there is a correct link
S990dtlogin.rc -> /sbin/init.d/dtlogin.rc

If i run /sbin/init.d/dtlogin.rc start
the system runs (and is running) well!
No errors saw in rc.log /var/dt/Xerrors and syslog.
grazie molte
carpe diem
Keith Bryson
Honored Contributor

Re: x start on boot

Do you see the startup script running in the /etc/rc.log - i.e. do you see a line similiar to:

Start CDE login server
Output from "/sbin/rc3.d/S990dtlogin.rc start":
----------------------------

Keith
Arse-cover at all costs
Eric Antunes
Honored Contributor

Re: x start on boot

Hi Antonio,

Execute this as root and at /:

#find sbin -name *dtlogin*

You should see this:

sbin/init.d/dtlogin.rc
sbin/rc2.d/K100dtlogin.rc
sbin/rc3.d/S990dtlogin.rc

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
antonio di paolo
Occasional Advisor

Re: x start on boot

nothing if i
grep dtlog /etc/rc.log.

if i
find /sbin -name "*dtlogin*"
then:
/sbin/init.d/dtlogin.rc
/sbin/rc2.d/K100dtlogin.rc
/sbin/rc3.d/S990dtlogin.rc

carpe diem
Eric Antunes
Honored Contributor

Re: x start on boot

Antonio,

I noticed that I don't have that /etc/inittab last line of yours:

a0:3:respawn:/usr/sbin/getty -h ttyd0p0 19200

Do you know why it is there??

Eric
Each and every day is a good day to learn.
Keith Bryson
Honored Contributor

Re: x start on boot

Antonio

I can deduce from your last post that you are not seeing this script run by rc. This means (as long as your link is definately there) that the system isn't getting to that last step of the rc scripts.

What is the LAST rc script to be run in the /etc/rc.log file? This script may possibly not be exiting and the system isn't continuing through the final rc initialisation.

Keith
Arse-cover at all costs
Robert-Jan Goossens
Honored Contributor

Re: x start on boot

How about enable dtlogin again.

# /usr/dt/bin/dtconfig -d
disable

# /usr/dt/bin/dtconfig -e
enable
# init 2

# init 3
Run
# dr_dt
and check for errors.

Regard,
Robert-Jan
Keith Bryson
Honored Contributor

Re: x start on boot

In addition to my last check, have you tried running

/sbin/rc3.d/S990dtlogin.rc start

just to make sure that the link is fully operational...

Keith
Arse-cover at all costs
antonio di paolo
Occasional Advisor

Re: x start on boot

Keith you and Alex are right.
An error is reported in the rc.log file. Why this problem (on starting a network service), has stopped the start of dt.login processes?
Thank you; i understood the reason of the fail.
grazie
carpe diem