Operating System - Linux
1832462 Members
3210 Online
110043 Solutions
New Discussion

Disable Xserver startup of Red Hat Entreprise 4

 
Rui Vilao
Regular Advisor

Disable Xserver startup of Red Hat Entreprise 4

Greetings,

I am quite new to Linux...

I want to permanently disable the Xserver on my RHEL 4.0 box.
What is the easiest way to do this without having to change the default run-level?

Any help/suggestion is highly appreciated.

TIA.

Kind Regards,

Rui Vilao.
"We should never stop learning"_________ rui.vilao@rocketmail.com
9 REPLIES 9
Ivan Ferreira
Honored Contributor

Re: Disable Xserver startup of Red Hat Entreprise 4

The easiest way is to change the default run level, why do you want to stay in run level 5?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Rui Vilao
Regular Advisor

Re: Disable Xserver startup of Red Hat Entreprise 4

Hi Ivan,

I am not sure if the only difference between run level 5 and 3 is the Xserver startup...

Note: On HP-UX I used to rename S990dtlogin.rc to s990dtlogin.rc and that was it!

TIA,

Rui.
"We should never stop learning"_________ rui.vilao@rocketmail.com
Ivan Ferreira
Honored Contributor

Re: Disable Xserver startup of Red Hat Entreprise 4

If you want to know the difference check at the SXX scripts in:

/etc/rc.d/rc3.d
/etc/rc.d/rc5.d

The SXX files in rc3.d start services in run level 3. The same for rc5.d. If you compare these directories, you will see that by default there are no differences, so you can safely start in runlevel 3 instead of runlevel 5. Also, the inittab starts the prefdm service in level 5
, so you cannot control the startup by runlevels.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: Disable Xserver startup of Red Hat Entreprise 4

Shalom Rui,

vi /etc/inittab

Change the run level to 3.

boot.

That does it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: Disable Xserver startup of Red Hat Entreprise 4

Just looking at my system, and it doesn't look like any of the services differ between 3 & 5.

You can double-check your system by looking at the output of 'chkconfig --list'.
One long-haired git at your service...
Ivan Ferreira
Honored Contributor

Re: Disable Xserver startup of Red Hat Entreprise 4

They don't defer, the X is started by prefdm in inittab.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Rui Vilao
Regular Advisor

Re: Disable Xserver startup of Red Hat Entreprise 4

Hi all,

Thanks a lot for your suggestions.
What about commenting-out prefdm in inittab?

Could this solve my issue?

TIA,

Kin Regards,

Rui.
"We should never stop learning"_________ rui.vilao@rocketmail.com
Ivan Ferreira
Honored Contributor

Re: Disable Xserver startup of Red Hat Entreprise 4

Yes, commenting that in inittab will prevent the startup of X at runlevel 5.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Rui Vilao
Regular Advisor

Re: Disable Xserver startup of Red Hat Entreprise 4

Hi,

I have commented-out prefdm in inittab.
Now the server hangs when starting the HAL daemon.

It looks like there is some dependency with Xserver.

TIA,

Rui.
"We should never stop learning"_________ rui.vilao@rocketmail.com