r-darwish / topgrade

Upgrade everything
GNU General Public License v3.0
3.37k stars 162 forks source link

Use zypper to check for reboot on openSUSE #1011

Open BrianAllred opened 1 year ago

BrianAllred commented 1 year ago

openSUSE's zypper package manager has the command zypper ps -s to check for processes that need a restart. Utilizing this for openSUSE installations would be awesome since needrestart doesn't support zypper/openSUSE.

s34m commented 1 year ago

This could be implemented but would require a logic to parse and analyse zypper ps -s output because not every process needs a system reboot. This could be avoided by having a config flag like restart_on_zypper_update_processes or something like that.