For our Linux VM's in VirtualBox, we like to map CTRL+ALT+DEL
to
shutdown -h now
The old way was editing the inittab
file. How is this done now in Debian 8 with systemd?
Just cd
into /lib/systemd/system/
and change the symlink of ctrl-alt-del.target
from reboot.target
to poweroff.target
.
ln -s /lib/systemd/system/poweroff.target /etc/systemd/system/ctrl-alt-del.target
then reset systemd daemon:
systemctl daemon-reload