/etc/init.d/gdm restart in X fails to start gdm
Bug #80339 reported by
Marius Gedminas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdm (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gdm
Just today I tried to restart gdm with sudo /etc/init.d/gdm restart from an X terminal. The server shut down (it took quite some time, > 10 seconds, for a while I thought the system crashed), and I was left looking at a text console.
/var/log/daemon.log has this:
Jan 17 22:31:02 localhost gdm[26242]: Display :0 is busy. There is another X server running already.
Jan 17 22:31:05 localhost gdm[26242]: Display :0 is busy. There is another X server running already.
Looks like /etc/init.d/gdm restart does not wait for the current gdm to fully shut down before it tries to start a new one.
To post a comment you must log in.
It doesn't work because the command is run within a gdm session.
It causes one of those two things :
1- The xterm is closed, as the script, and gdm just doesn't start
2- xterm makes X stays open while gdm is down, and gdm cannot start a new X session.
One easy workaround is to start the command in screen.