View previous topic :: View next topic |
Author |
Message |
jeff777 n00b
Joined: 04 Nov 2003 Posts: 45 Location: Vancouver, BC
|
Posted: Wed Apr 04, 2007 2:48 am Post subject: "/etc/init.d/xdm stop" doesn't work [solved] |
|
|
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 |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Wed Apr 04, 2007 5:54 am Post subject: |
|
|
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 |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5935
|
Posted: Wed Apr 04, 2007 6:55 am Post subject: |
|
|
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 |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Wed Apr 04, 2007 7:05 am Post subject: |
|
|
man start-stop-daemon and look at "--retry" |
|
Back to top |
|
|
jeff777 n00b
Joined: 04 Nov 2003 Posts: 45 Location: Vancouver, BC
|
Posted: Thu Apr 05, 2007 5:39 am Post subject: |
|
|
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. |
|
Back to top |
|
|
|