Hi Thomas, On Sat, Jan 01, 2022 at 02:31:04PM +0100, Thomas Liske wrote: > could you please provide the content of /proc/$PID/cgroup for an socket > activated sshd instance?
Sure: 1 [1/4996]mh@torres:~ $ pgrep ssh 315675 315738 [2/4997]mh@torres:~ $ sudo cat /proc/315675/cgroup [sudo] password for mh on torres: 0::/user.slice/user-1001.slice/session-296.scope [3/4998]mh@torres:~ $ sudo cat /proc/315738/cgroup 0::/user.slice/user-1001.slice/session-296.scope [4/4999]mh@torres:~ $ > As a workaround you might blacklist sshd in needrestart but I think a > generic approach handling socket activation services in needrestart > would be better. Therefore needrestart need a way to detect if the > process belongs to a socket activated service. It is also possible to mask ssh.service entirely in systemd. But of couse having the heuristic fixed would be better. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421