Debian – Suddenly, shutdown command can’t be found anymore

debiandebian-wheezyshutdown

I logged in to my Debian 7 server, did an upgrade using apt and wanted to shutdown+reboot using shutdown -r now as i did a lot of times before. This time, the shutdown command can't be found anymore. I've already read somewhere that i can try it with the whole path /sbin/shutdown, but the programm isn't there, too. I also can't find the reboot command anywhere.

What went wrong? What can i do to restore the shutdown command?

Best Answer

$ dpkg -S /sbin/shutdown
sysvinit-core: /sbin/shutdown

You probably "upgraded" to systemd, removing shutdown and friends. If so, you now need to do systemctl poweroff to shutdown the system. Why does systemd not provide an alias to shutdown? Why not indeed...

EDIT:

/sbin/shutdown should be available if you install the systemd-sysv package. It would be nice if systemd would recommend or even just suggest systemd-sysv.

Related Topic