<html><body>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.<div><br /></div><div>Arthur.<br /><blockquote><br />----- Original Message -----<br /><div style="width:100%;background:rgb(228,228,228);"><div style="font-weight:bold;">From:</div> "Mark Hindley" <mark@hindley.org.uk></div><br /><div style="font-weight:bold;">To:</div>"Arthur Marsh" <arthur.marsh@internode.on.net>, <916212@bugs.debian.org><br /><div style="font-weight:bold;">Cc:</div><br /><div style="font-weight:bold;">Sent:</div>Wed, 12 Dec 2018 17:23:38 +0000<br /><div style="font-weight:bold;">Subject:</div>Re: Bug#916212: elogind: when upgrading /run/elogind.pid believed even if actual process had died<br /><br /><br />
On Wed, Dec 12, 2018 at 12:54:42AM +1030, Arthur Marsh wrote:<br />
> Package: elogind<br />
> Version: 239.3-1<br />
> Severity: normal<br />
> <br />
> Dear Maintainer,<br />
> <br />
> *** Reporter, please consider answering these questions, where appropriate ***<br />
> <br />
> * What led up to the situation?<br />
> <br />
> aptitude upgrade:<br />
> <br />
> [UPGRADE] elogind:amd64 239.1+20181115-1 -> 239.3-1<br />
> [UPGRADE] libelogind0:amd64 239.1+20181115-1 -> 239.3-1<br />
> [UPGRADE] libpam-elogind:amd64 239.1+20181115-1 -> 239.3-1<br />
> <br />
> * What exactly did you do (or not do) that was effective (or<br />
> ineffective)?<br />
> <br />
> When attempting to restart the new version of elogind, there would<br />
> be an error message based on the existence of the /run/elogind.pid file,<br />
> even when the process did not exist. I had to manually remove<br />
> /run/elogind.pid to be able to start the new elogind<br /><br />
Arthur. Could you try this patch and verify it fixes this issue for you?<br /><br />
Thanks<br /><br />
Mark<br /><br />
--- a/src/login/elogind.c<br />
+++ b/src/login/elogind.c<br />
@@ -179,8 +179,8 @@<br />
get_process_comm(pid, &comm);<br />
if (NULL == startswith(strna(comm), program_invocation_short_name))<br />
goto we_are_alone;<br />
+ return pid;<br />
}<br />
- return pid;<br /><br />
we_are_alone:<br /><br /></blockquote></div></body></html>