Bug#916212: elogind: when upgrading /run/elogind.pid believed even if actual process had died

Arthur Marsh arthur.marsh at internode.on.net
Thu Dec 13 12:06:12 GMT 2018


Hi Mark, this patch seems to have solved the problem of elogind not
restarting during the 239.1+20181115-1 -> 239.3-1 upgrade thanks.
Arthur

----- Original Message -----
From: "Mark Hindley" 
To:"Arthur Marsh" , 
Cc:
Sent:Wed, 12 Dec 2018 17:23:38 +0000
Subject:Re: Bug#916212: elogind: when upgrading /run/elogind.pid
believed even if actual process had died

 On Wed, Dec 12, 2018 at 12:54:42AM +1030, Arthur Marsh wrote:
 > Package: elogind
 > Version: 239.3-1
 > Severity: normal
 > 
 > Dear Maintainer,
 > 
 > *** Reporter, please consider answering these questions, where
appropriate ***
 > 
 > * What led up to the situation?
 > 
 > aptitude upgrade:
 > 
 > [UPGRADE] elogind:amd64 239.1+20181115-1 -> 239.3-1
 > [UPGRADE] libelogind0:amd64 239.1+20181115-1 -> 239.3-1
 > [UPGRADE] libpam-elogind:amd64 239.1+20181115-1 -> 239.3-1
 > 
 > * What exactly did you do (or not do) that was effective (or
 > ineffective)?
 > 
 > When attempting to restart the new version of elogind, there would
 > be an error message based on the existence of the /run/elogind.pid
file,
 > even when the process did not exist. I had to manually remove
 > /run/elogind.pid to be able to start the new elogind

 Arthur. Could you try this patch and verify it fixes this issue for
you?

 Thanks

 Mark

 --- a/src/login/elogind.c
 +++ b/src/login/elogind.c
 @@ -179,8 +179,8 @@
 get_process_comm(pid, 
 if (NULL == startswith(strna(comm), program_invocation_short_name))
 goto we_are_alone;
 + return pid;
 }
 - return pid;

 we_are_alone:


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20181213/9f2aa5d9/attachment.html>


More information about the Debian-init-diversity mailing list