Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"/etc/init.d/xdm stop" doesn't work [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
jeff777
n00b
n00b


Joined: 04 Nov 2003
Posts: 45
Location: Vancouver, BC

PostPosted: Wed Apr 04, 2007 2:48 am    Post subject: "/etc/init.d/xdm stop" doesn't work [solved] Reply with quote

When I run "/etc/init.d/xdm stop" I get the message "Error stopping GDM". GDM and Xorg still stop, but I need to run the command again to make init realize it. I tried to figure out why, but I don't understand the init script and can't figure out why it's giving this error.

This wouldn't be much of a problem, except that I need to stop xdm as part of a suspend to ram script. Can anyone give me any suggestions on how to fix the init script.


Last edited by jeff777 on Thu Apr 05, 2007 5:40 am; edited 1 time in total
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Apr 04, 2007 5:54 am    Post subject: Reply with quote

Change the start-stop-daemon line in /etc/init.d/xdm to:
Code:
start-stop-daemon --stop \
     --exec ${myexe} --verbose

That increases the chance of it showing a useful error message.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Wed Apr 04, 2007 6:55 am    Post subject: Reply with quote

could it be taking too long to stop? amavisd-new does that to me on my mail server. (i don't know the fix unfortunately)

cheers
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Apr 04, 2007 7:05 am    Post subject: Reply with quote

man start-stop-daemon and look at "--retry" :wink:
Back to top
View user's profile Send private message
jeff777
n00b
n00b


Joined: 04 Nov 2003
Posts: 45
Location: Vancouver, BC

PostPosted: Thu Apr 05, 2007 5:39 am    Post subject: Reply with quote

Thanks for your help, everyone. I figured out how the start-stop-daemon command works and I can use it in place of /etc/init.d/xdm stop, like so:
Code:

start-stop-daemon --stop --exec /usr/bin/gdm
This work around is good enough for now. I'll try to figure out why the init script fails some other time. I've got more annoying Gentoo bugs to work on right now. :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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