On RHEL7, running the command (as sudo) needs-restarting
hangs, as does needs-restarting -s
while needs-restarting -r
comes back within 2 seconds. By "hangs" I mean that it takes a really long time and eventually my SSH session times out. This was working fine until recently. What can I do to investigate the issue (barring "restart'll fix 'er")?
Relevant man page: https://man7.org/linux/man-pages/man1/needs-restarting.1.html
Note that I restarted the server and then needs-restarting
completed in a couple of seconds. But this is clearly not ideal.