Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] xdm crashed (start-stop-daemon: fopen `/run/gdm/gdm
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
double_crane
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2011
Posts: 134
Location: China

PostPosted: Mon Oct 28, 2013 2:47 pm    Post subject: [Solved] xdm crashed (start-stop-daemon: fopen `/run/gdm/gdm Reply with quote

lately,I meet a question about xdm and gdm

I use openrc init , DISPLAYMANAGER="gdm" in /etc/conf.d/xdm

rc-update add xdm default

Code:

$:~ /etc/init.d/xdm status
xdm crashed

Code:

dc@K650C ~ $ /etc/init.d/xdm status
 * status: crashed
dc@K650C ~ $ sudo /etc/init.d/xdm stop
Password:
 * Stopping gdm ...
 * start-stop-daemon: fopen `/run/gdm/gdm.pid': No such file or directory [ ok ]
dc@K650C ~ $ /etc/init.d/xdm status
 * status: stoped


last week it was supposed like this,which is normal
Code:

dc@K650C ~ $ /etc/init.d/xdm status
 * status: started
dc@K650C ~ $ sudo /etc/init.d/xdm stop
Password:
 * Stopping gdm ...                                [ OK ]
dc@K650C ~ $ /etc/init.d/xdm status
 * status: stoped


now gdm can launch normally, all are fine ,with xdm status crashed
and with xdm crashed , I can't do /etc/init.d/xdm start/stop/restart ,that is the only difference . I can't stop or restart the gdm via xdm

Code:

dc@K650C ~ $ sudo /etc/init.d/xdm stop
Password:
 * Stopping gdm ...
 * start-stop-daemon: fopen `/run/gdm/gdm.pid': No such file or directory [ ok ]
dc@K650C ~ $ /etc/init.d/xdm status
 * status: stopped


the xdm stoped , but the gnome-session is launched , and all as normal .
xdm is not able to control gdm at all after it launchs gdm the first time .

whatever stop/restart xdm , nothing happened to gdm session.

please help me to make xdm stop/restart correct able to control gdm or the DISPLAYER ,thank you.


Last edited by double_crane on Tue Nov 05, 2013 9:43 am; edited 1 time in total
Back to top
View user's profile Send private message
double_crane
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2011
Posts: 134
Location: China

PostPosted: Wed Oct 30, 2013 4:50 pm    Post subject: Reply with quote

please help

now the system is all right
just with the "xdm crashed status"
and I can't stop gdm once xdm launchs gdm ,except I ps and kill -9 gdm's pid
now /etc/init.d/xdm can't control gdm. but it could last week

and there was no " /run/gdm/gdm.pid no such file " info last week
Back to top
View user's profile Send private message
McGee23
n00b
n00b


Joined: 04 Nov 2013
Posts: 3

PostPosted: Mon Nov 04, 2013 4:14 pm    Post subject: Reply with quote

Hi,

I had the same issue, the quick and dirty fix is to create a symlink from /run/gdm to /run (where you can find the file gdm.pid):

Code:
sudo ln -s /run /run/gdm

Best, Georg
Back to top
View user's profile Send private message
double_crane
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2011
Posts: 134
Location: China

PostPosted: Tue Nov 05, 2013 9:42 am    Post subject: Reply with quote

McGee23 wrote:
Hi,

I had the same issue, the quick and dirty fix is to create a symlink from /run/gdm to /run (where you can find the file gdm.pid):

Code:
sudo ln -s /run /run/gdm

Best, Georg


thank you
It works

I was troubled by it for weeks . I had thought it was because I update some software's version ,maybe xdm or sth others , to make them not compatible .

recently I use startx instead of gdm , it works with no "crashed"

thank you again.

and I notice that the ln command had to be done every time cos /run directory is cleared every boot.
Back to top
View user's profile Send private message
danky
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2006
Posts: 115

PostPosted: Tue Nov 19, 2013 12:38 am    Post subject: Reply with quote

A more permanent solution that persists after reboot:

In /etc/init.d/xdm I added the following line:

Code:

ln -snf /run /run/gdm


directly after the start function is called.

Here is a code snip of the start of the start function:

Code:

......

start() {
   ln -snf /run /run/gdm
   local EXE NAME PIDFILE AUTOCLEAN_CGROUP
   setup_dm

......


After a system reboot my xdm is no longer flagged as "crashed", I was able to confirm this worked on both my laptop and desktop installations.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum