Re: How to restart the X server under Debian?



On Wed, May 24, 2006 at 04:26:01PM -0500, Ryan Nowakowski wrote:
On Tue, May 23, 2006 at 11:16:46PM +0200, Colin Finck wrote:
I need to restart the X server (XFree86 4.3.0) under Debian Sarge with a
script or program.
On other Linux systems, I now that I can use "init 3" to terminate the X
server and then use "startx" to start it again, but on my Debian system this
does not work.

Debian doesn't use runlevels to detemine when to run X. X is run by
using startx[1] or a graphical login manager (xdm,kdm,gdm).

The systems with use runlevels to start and stop X also use
a display manager (xdm/kdm/gdm) to do it, and usuallt have
start X available for manual starts.

What is different in Debian is that if a display manager is installed
it (and hence X) will be started in all multi-user runlevels.

Other distributions traditionally start the display manager in runlevel
5 but not 3, allowing a change of run level as a convenient way to
reconfigure the services running on a system.

And again, we are just talking defaults here. Debian can be made to
behave in the traditional way by updating the contents of the
/etc/rcR.d directory, and selecting the desired initial runlevel
in /etc/inittab (the default being 2):

# The default runlevel.
id:2:initdefault:


Regards,
DigbyT
--
Digby R. S. Tarvin digbyt(at)digbyt.com
http://www.digbyt.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Debian equivalent to service?
    ... }>on debian there are a few redhatism that have not been created: ... There is nothing to stop you from making the runlevels behave differently. ... service script, which may or may not provide the same features (I dunno, I ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: update-rc.d questions: best practice?
    ... I am considering "update-rc.d" script that is mentioned in Debian ... When daemon is installed, some default priority values are setup. ... If you want disable some service without lost the runlevels, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: GUI login screen and non-root shutdown...
    ... how can one get out of the whole x system under Debian? ... The display manager 'wdm' can be configured to allow users to shutdown, ... reboot and exit the graphical environment. ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
    (Debian-User)
  • Changing Default Display Mgr
    ... How may I change my default display manager? ... Lovin' Debian, ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
    (Debian-User)
  • Re: Script similar to Redhat chkconfig
    ... > chkconfig will list the services and what their runlevels are and ... There's a bug filed in the Debian BTS. ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
    (Debian-User)