Eu aprendi da maneira mais difícil que
sudo reboot
na hora errada é uma ótima maneira de bater a cabeça no disco rígido.
A única maneira segura de reiniciar o Ubuntu rodando em LUKS criptografado é "eliminar" manualmente os processos que você conhece? Existe um comando '''sudo safe-reboot''' para este caso?
Responder1
Sim existe /sbin/shutdown
. Leia man shutdown
e você poderá usá-lo para reiniciar ou interromper. Veja man shutdown
, que diz, em parte:
trusty (8) shutdown.8.gz
Provided by: upstart_1.12.1-0ubuntu4_i386 bug
NAME
shutdown - bring the system down
SYNOPSIS
shutdown [OPTION]... TIME [MESSAGE]
DESCRIPTION
shutdown arranges for the system to be brought down in a safe way. All
logged-in users are notified that the system is going down and, within
the last five minutes of TIME, new logins are prevented.