Shutting down Debian Jessie with CTRL + ALT + DEL

For our Linux VM in VirtualBox, we like to map CTRL+ALT+DEL

to

shutdown -h now

      

The old way was to edit the file inittab

. How is this done now in Debian 8 using systemd?

+3


source to share


2 answers


Just cd

in /lib/systemd/system/

and change the symbolic link 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 the systemd daemon:

systemctl daemon-reload

      

+6


source


Well, maybe a special target with a name ctrl-alt-del.target

. So, as the mailing list says , you can just bind the target, saypoweroff.target



0


source







All Articles