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 `[email protected]`
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 [email protected]
No containers need to be restarted.
-->8--

** Patch added: 
"needrestart-2.6-fix-erroneous-assignation-in-if-statements.diff"
   
https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/1746871/+attachment/5151208/+files/needrestart-2.6-fix-erroneous-assignation-in-if-statements.diff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1746871

Title:
  Postgresql service unit name wrongly cutted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/1746871/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to