I've recently switched from Raspbian Jessie (that has a full UI) and Jessie-Lite (which is lean and CLI only). I connect via ssh, and have been messing with configuration and restarting my Raspberry Pi a lot. With full Jessie, I could send
sudo shutdown -r now and my ssh connection (from OSX Sierra) would get a signal that it was being disconnected and close on the client end.
Then I switched to Jessie-Lite and the same thing (
sudo reboot does this also) will just make ssh hang, eventually after a long time give the me ability to Ctrl-C where it gives me a broken pipe message. I didn't even realize the behavior was due to something extra or a configuration! But now it's really annoying and if I don't want to wait I have to close out my terminal.
What's the magic sauce? What am I missing and how can I install or configure it to get the friendly disconnected behavior back?
(note - my transition also included moving from kernel 4.9 to 4.4)