to Shutdown my Raspberry I type sudo shutdown -h -P now
this works fine when I am directly contected via USB Keyboard and Hdmi display but when Iam connected over SHH from my windows Pc using Putty it does not shutdown.
It looks like this :
pi@transceiver02 ~ $ sudo shutdown -h -P now
The system is going down for system halt NOW!s/1) (Fri Sep 11 09:45:06 2015):
pi@transceiver02 ~ $ ls
bluez-5.33 command python_games testInst
bluez-5.33.tar.xz Desktop ShutdownBtn.py text.txt
bluez-5.33.tar.xz.1 PTest.py ShutDownBtn.sh
pi@transceiver02 ~ $
So How do I realy shutdown the Raspberry over SSH ?
ps ax | grep -E "(systemd|upstart|init)"
in a terminal and look forsystemd
orinit
. This will be your init system. – Izzy Sep 11 '15 at 10:471 ? Ss 0:01 init [2]
– Zion Sep 11 '15 at 11:01sudo init 0
and it works! – Zion Sep 11 '15 at 11:05