Different ways to restart your Oracle Linux

Este é o típico artigo que não muda a vida de ninguém, mas apela para a nossa curiosidade técnica. Vamos lá.

Alguns acham que o shutdown serve apenas para desligar a máquina, mas em seus parâmetros logo vemos que não:

[root@oel7 system]# shutdown --help
shutdown [OPTIONS...] [TIME] [WALL...]
 
Shut down the system.
 
     --help      Show this help
  -H --halt      Halt the machine
  -P --poweroff  Power-off the machine
  -r --reboot    Reboot the machine
  -h             Equivalent to --poweroff, overridden by --halt
  -k             Don't halt/power-off/reboot, just send warnings
     --no-wall   Don't send wall message before halt/power-off/reboot
  -c             Cancel a pending shutdown

Shutdown -r now reiniciará o server no mesmo momento do comando. Se não usar o “now”, o Linux agendará o restart para o minuto seguinte:

[root@oel7 system]# shutdown -r now

Reboot:

[root@oel7 ~]# reboot

Systemctl reboot:

[root@oel7 ~]# systemctl reboot

Init 6:

[root@oel7 ~]# init 6

Telinit 6:

[root@oel7 ~]# telinit 6

Leave a Comment

Your email address will not be published.