tags 887828 upstream
thanks

Hi,

you are running needrestart outside of the container? For some reason
needrestart seems to not detect that the services are belonging to a LXC
container. And the postfix service name looks suspicious. Could you
please provide the content of /proc/$PID/cgroup of the postfix's master
service?


Thanks,
Thomas


Chris <[email protected]> writes:

> Package: needrestart
> Version: 2.11-3
> Severity: normal
>
> Dear Maintainer,
>
> having Postfix and the wazuh-agent package from [1] on a current Debian
> Stretch 9.3 running within an LXC container shows the following services
> as required for a restart even if the services, the container or the
> host was freshly restarted:
>
> [email protected]
> wazuh-agent.service
>
> Running needrestart with the -v parameter shows this output:
>
> [main] eval /etc/needrestart/needrestart.conf
> [main] needrestart v2.11
> [main] running in root mode
> [Core] Using UI 'NeedRestart::UI::stdio'...
> [main] detected systemd
> [main] #372 uses non-existing /var/ossec/bin/ossec-agentd
> [main] #372 is not a child
> [main] #1047 uses non-existing /usr/lib/postfix/sbin/pickup
> [main] #1047 is a child of #438
> [main] #372 exe => /var/ossec/bin/ossec-agentd
> [main] #372 is wazuh-agent.service
> [main] #438 exe => /usr/lib/postfix/sbin/master
> [main] #438 is [email protected]
> [Kernel] Linux: kernel release 4.13.13-5-pve, kernel version #1 SMP PVE 
> 4.13.13-36 (Mon, 15 Jan 2018 12:36:49 +0100)
> [Kernel/Linux] Did not find any linux images.
> Failed to retrieve available kernel versions.
> Restarting services...
> Services to be restarted:
> Restart «[email protected]»? [Ynas?] n
> Restart «wazuh-agent.service»? [Ynas?] n
> Services being skipped:
>  systemctl restart [email protected]
>  systemctl restart wazuh-agent.service
> No containers need to be restarted.
> No user sessions are running outdated binaries.
>
> The two mentioned binaries which doesn't exist according to needrestart
> output are there and accessible:
>
> ls -la /var/ossec/bin/ossec-agentd
>
> -rwxr-x--- 1 root root 528136 Dez 22 18:59 /var/ossec/bin/ossec-agentd
>
> ls -la /usr/lib/postfix/sbin/pickup
>
> -rwxr-xr-x 1 root root 14408 Sep 27 06:56 /usr/lib/postfix/sbin/pickup
>
> ls -la 
>
> Not sure what causes this behavior. If there are any additional info i
> could / need to provide please let me know.
>
> Thanks,
>
> [1] 
> https://documentation.wazuh.com/current/installation-guide/installing-wazuh-agent/wazuh_agent_deb.html

-- 

    ::  WWW:                        https://fiasko-nw.net/~thomas/  ::
   :::  Jabber:                   xmpp:[email protected]  :::
    ::  flickr:             https://www.flickr.com/photos/laugufe/  ::

Reply via email to