Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can No Longer Stop xdm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jagdpanther
Guru
Guru


Joined: 22 Nov 2003
Posts: 530

PostPosted: Sat May 20, 2017 6:21 pm    Post subject: Can No Longer Stop xdm Reply with quote

I don't do this often so don't know how long ago this started, but I can no longer stop xdm:

from the console (after a <ctrl><alt><f1> to get out of X)

Code:
# /etc/init.d/xdm stop
 * Caching service dependencies ...                                                                                                                                                                                                                                                                                       [ ok ] * Stopping xdm ...
 * start-stop-daemon: 1 process refused to stop
 * Error stopping xdm                                                                                                                                                                                                                                                                                                     [ !! ] * ERROR: xdm failed to stop


kill <pid of xdm> did not work.

kill -9 <pid of xdm>
and
kill -9 <pid of /usr/bin/X>

appeared to work, so to check untill I pressed
<ctrl><alt-f7> Which locked up my keyboard and mouse on a blank black screen. I have no other system handy to try to ssh into the system so I rebooted.

This issue is consistant. Any ideas?
(I wanted to shutdown X before emerging a newer nvidia-driver.)
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5689
Location: Removed by Neddy

PostPosted: Sat May 20, 2017 8:07 pm    Post subject: Reply with quote

Please don't kill -9
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
saturnalia0
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2016
Posts: 95

PostPosted: Sun May 21, 2017 8:44 pm    Post subject: Reply with quote

Naib wrote:
Please don't kill -9


This kills the process /s
Back to top
View user's profile Send private message
Section_8
Guru
Guru


Joined: 22 May 2004
Posts: 573
Location: Arlington, TX, US

PostPosted: Sun May 21, 2017 9:20 pm    Post subject: Reply with quote

Do you anything in /var/log/Xorg.0.log when it was shutting down?
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5689
Location: Removed by Neddy

PostPosted: Sun May 21, 2017 10:12 pm    Post subject: Reply with quote

saturnalia0 wrote:
Naib wrote:
Please don't kill -9


This kills the process /s
It obliterates the process...

it leaves sockets open, files handles open, any children are then inherited by PID1 ...
kill -9 is VERY VERY rarely needed
You try kill -15, then kill -2 then kill -1. If the process is STILL not terminated you submit a bug report upstream because the process is buggy-as. THEN if you know you will be rebooting in the short term (ie next couple of hours) you might consider kill -9

https://turnoff.us/geek/dont-sigkill/
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14163

PostPosted: Mon May 22, 2017 12:58 am    Post subject: Reply with quote

That's not quite accurate. When a process terminates, whether voluntarily or by fatal signal, the kernel will close any open file descriptors. If no surviving process has a reference to the socket/file, then that closes the underlying resource. However, this can still cause data loss, because any application data that was buffered in userspace is lost. There is no need to plan for a reboot after a kill -9, but you may need to perform manual cleanup of any resources that a graceful exit would have cleaned for you (e.g. finalizing journals for database systems, resetting window state if you kill the window manager, resetting the screen if KMS does not clean it for you after you kill X, etc.).
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