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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With