Operating System - HP-UX
1832074 Members
2982 Online
110035 Solutions
New Discussion

How to restart the CDE without rebooting the server

 

How to restart the CDE without rebooting the server

Hi,
we have a HP9000 Class L2000 server running on HP-UX 11.00.
A screen, a keyboard, a mouse are connected to this server and we use them to manage the server through CDE. The screen is connected to an internal electonic board. The mouse and the keyboard are connected to an another internal electronic board(USB).
If the mouse or the keyboard are accidentally disconnected, they become unavailable and we need to reboot the server.
Is there a way to restart this USB card or CDE without rebooting ?
Thanks for your help.
Laurent.
11 REPLIES 11

Re: How to restart the CDE without rebooting the server

I've already tried : dtlogin start|stop|reset but it didn't work
Robert-Jan Goossens
Honored Contributor

Re: How to restart the CDE without rebooting the server

Hi Laurent,

/sbin/init.d/dtlogin.rc stop

/sbin/init.d/dtlogin.rc start

Regards,
Robert-Jan.

Stefan Farrelly
Honored Contributor

Re: How to restart the CDE without rebooting the server

find the process dtsession and kill it, then cde login will respawn (if the sbin/init.d script didnt work).
Im from Palmerston North, New Zealand, but somehow ended up in London...
T G Manikandan
Honored Contributor

Re: How to restart the CDE without rebooting the server

/sbin/init.d/dtlogin.rc stop
/sbin/init.d/dtlogin.rc start

Re: How to restart the CDE without rebooting the server

Lauching the dtlogin.rc start, the following error appears in the Xerrors file :
ERROR pid 1871 : hung in xopen display HAC031 attempt #1 aborting
ERROR pid 1871 : server open attempt #1 failed for HAC01:0, giving up.

Any Ideas ?

Thanks.
Alex Glennie
Honored Contributor

Re: How to restart the CDE without rebooting the server

check hostname resolution is resolving correctly, ps -ef ¦ grep dtlogin ? What do you see on the actual graphics console
Pete Randall
Outstanding Contributor

Re: How to restart the CDE without rebooting the server

Laurent.,

You could try dropping a run level: "init 2"


Pete



Pete
Alex Glennie
Honored Contributor

Re: How to restart the CDE without rebooting the server

try /sbin/init 2
then a /usr/bin/X11/X :0

use ctrl shift break to kill it ...any errors ?
also check in /var/dt/Xerrors and /var/X11/Xserver/logs/X0.log
Brian Lee_4
Regular Advisor

Re: How to restart the CDE without rebooting the server

You can bring down system to run level 2 and then bring it back to level 3 with "init" command to restart CDE daemons.
brian lee

Re: How to restart the CDE without rebooting the server

I've tried all the commands you suggested but
it's still not working. I think, in this case, the electronic board has to be resetted (reboot).
Thanks anyway for your help.
Rick Beldin
HPE Pro

Re: How to restart the CDE without rebooting the server

Generally, if you do disconnect the mouse or the keyboard, the Xserver (/usr/bin/X11/X) cannot talk to the device again until it is restarted.
A reboot is generally not necesary. USB devices support a kind of limited hot-plugging that depends on the hubd daemon to notice that the device has been removed or added. PHCO_26447 added this functionality to 11.00, which did not originally have this feature.

Also, in general to stop CDE temporarily, the previous posts are correct:

/sbin/init.d/dtlogin.rc stop

will stop CDE and

/sbin/init.d/dtlogin.rc start

will start it back up.

If you want to disable it across reboots, you can simply do:

/usr/dt/bin/dtconfig -d

This has the effect of modifying the /etc/rc.config.d/desktop file to prevent dtlogin from starting.

You can do:

/usr/dt/bin/dtconfig -e

to enable it again.

dtconfig -kill can also be used to kill the daemon. It performs the same as dtlogin.rc stop
Necessary questions: Why? What? How? When?