On Sun, Sep 20, 2015 at 7:24 PM, Quartz <qua...@sneakertech.com> wrote: ... >> "time sh /etc/rc shutdown". See what's still running. kill -HUP everything >>> except init and your session and see what's still running 5 seconds >>> later.
Hmm, you truncated the suggested steps... >> OK I'll try that, thanks. > > > I'm missing something. > > Logged in as root, 'sh /etc/rc shutdown' returns instantly and according > 'ps' everything's still running. Okay, so it's not some pkg_script that's being slow. That's good. > Trying to then kill -HUP half the processes > doesn't work (they just restart). Saying "doesn't work" when they're behaving as documented on their manpages is a bit odd. Which of those survive after you do the step that you truncated from the suggestion? Checking one of my systems, the answer is "NONE"... (Why does init do HUP then TERM? By default, HUP will terminate logins and most user processes, getting most interactive processes out of the way while logging and other base and network services are still operating, so interactive processes can cleanly terminate. TERM should then kill the rest, leaving only processes having some sort of problem (e.g., unresponsive NFS server) or that are badly behaved.) Philip Guenther