Re,

"ge...@riseup.net" <ge...@riseup.net> writes:

> (I'm subscribed to the bug, not need to mail me directly.)
>
> Hi Patrick,
>
> Thanks for your response:
>
> On 17-01-14 23:31:13, Thomas Liske wrote:
>> the repeating restart of ssh.service might be triggered by one or more
>> running user session. Do you have libpam-systemd installed and
>> enabled?
>
> Yes, it's installed. I guess it's enabled as well, because I didn't
> touched the defaults. 'sd-pam' is running which loads pam_systemd.po.
> Besides: I'm using SSSD, to check ssh keys and sudo roles against LDAP
> servers, but I don't think this has any influence.

it shouldn't. Could you please provide the output of /proc/$PID/cgroup
of the sshd childs reported (i.e. of pid #30262 of your first mail) to
verify that libpam-systemd is used? I would expect it is not part of the
user session slice for some reasons.


>> There is an issue in needrestart assuming that libpam-systemd (if
>> systemd is used at all) is used to assign user sessions processes into
>> according cgroups. If libpam-systemd is not running all session
>> process are part of sshd's cgroup, so needrestart suggests to restart
>> ssh.service (which won't affect any session processes). A new config
>> option has been added[1] to address this option.
>> 
>> [1]
>> https://github.com/liske/needrestart/commit/6a29143e1c6439e1f851b172e468aeef17b261b2
>> 
>> The repeating restart of ganeti.service might be triggered by some
>> ganeti child processes managing virtual machines. It might not be
>> possible to fix this problem without stopping the VMs.
>
> Just to clarify: Does this mean it's not possible to fix this in
> needrestart?

I assume that the affected ganeti processes are the HVM of running VMs
and do not support some sort of gracefully restarts (something like
systemctl daemon-reexec does for systemd). Needrestart relys that
daemons support restarting using the init system (read: systemctl if
systemd is used). Although special restart handlers will be possible in
needrestart 2.11 (required at least for sysv-init, systemd and dbus) it
is not be possible to restart any daemon if they don't support the init
system interface.


HTH,
Thomas

-- 

    ::  WWW:                        https://fiasko-nw.net/~thomas/  ::
   :::  Jabber:                   xmpp:tho...@jabber.fiasko-nw.net  :::
    ::  flickr:             https://www.flickr.com/photos/laugufe/  ::

Reply via email to