Comment 4 for bug 1746871

Revision history for this message
Jérôme (jerome-auge) wrote :

I gave a quick look at the `/usr/sbin/needrestart` and the problem seems to be with one (or two) erroneous `if()` statements that performs an affectation to the `$value` instead of doing a regexp match test.

After applying the attached patch, the `postgresql@9.6-main.service` service is correctly detected :

--8<--
# needrestart -r l
Scanning processes...
Scanning candidates...
Scanning linux images...
Running kernel seems to be up-to-date.
Services to be restarted:
systemctl restart postgresql@9.6-main.service
No containers need to be restarted.
-->8--