liske / needrestart

Restart daemons after library updates.
GNU General Public License v2.0
426 stars 67 forks source link

Needstart should not restart not running or even disabled services #269

Closed j-r-git closed 1 year ago

j-r-git commented 1 year ago

Hi,

on my servers, needstart attempts to restart a service even if it is not running. This is the case even if the service is disabled via "systemctl disable some-service". This breaks auto-updates for me.

Is this the intended behaviour, or can this be controlled somehow? The desired behaviour would be that in interactive mode these services are not preselected and in auto mode not restarted.

liske commented 1 year ago

I wonder why needrestart should decide to restart a service if it is not running at all. Could you provide a needrestart -vrl output for this issue?

j-r-git commented 1 year ago

Hi liske,

Thanks very much for your help.

It took me a while to debug this, and it turns out that during an upgrade this service started although it was disabled. So the problem is not related to needrestart - sorry for the false alarm.