On Mon, 17 Dec 2012, Francesco Poli wrote:

On Mon, 17 Dec 2012 09:23:25 +0100 (CET) Tomas Pospisek wrote:

(I'm Cc'ing Matt, checkrestart's original author here since he might
  provide valuable insight)

Hello Tomas,
thanks a lot for following up on my bug report!

Francesco Poli writes in his bugreport:

I've just noticed that checkrestart fails to show getty processes,
when they need to be restarted.

And proceeds to patch out util-linux from the packages to be excluded from
being reported:

     -    ignorelist = [ 'util-linux', 'screen' ]
     +    ignorelist = [ 'screen' ]

The reason for util-linux not being reported is - I think - precisely the
getty process. The problem with killing getty is, that if there are users
logged in, killing getty will terminate their sessions and whatever they
were doing at that moment - which is probably not what we want.

This sounds really really strange to me.

I have never had any single issue with killing getty processes with

 # killall -TERM getty

The needed getty processes are automatically re-spawned and nothing
seems to happen to users who are logged in.

I've just retried to do the following:

 0) I logged in as my regular user and then started an X session:

      $ startx & logout

    After that, I started a number of graphical applications

 1) I switched back to a virtual console ([Ctrl+Alt+F2]) and logged in
    again as my regular user

 2) I switched to another virtual console ([Ctrl+Alt+F3]) and logged in
    as root

 3) as root, I looked at the running getty processes:

      # ps aux | grep getty

    only four getty processes were running (for tty4, tty5, tty6, and
    tty1)

 4) as root, I killed all the getty processes:

      # killall -TERM getty
      # ps aux | grep getty

    the same four getty instances (for tty4, tty5, tty6, and tty1)
    were re-spawned with different PIDs

 5) nothing special happened to the root console session, to the
    regular user console session, or to the regular user X session


So, in summary, I cannot see any problem with killing getty processes...

Could you please elaborate?
Which bad consequences do you see in such an action?
I am a bit puzzled...

Yup, you are completely right: instead of theorizing I've just tried killing all getty's as you did and saw the same as you: nothing happened to existing sessions. They were just fine.

So yes, I concur, util-linux can be removed from the blacklisted packages.

Sorry for the noise and thanks a lot Francesco for proving me wrong :-)!!!
*t


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to