[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problema kernel panic durante shutdown o reboot con raid



Buongiorno Davide e grazie per la risposta.

Il 06/04/25 10:54, Davide Prina ha scritto:
Alessandro Baggi ha scritto:

Davide Prina ha scritto:

hai provato usando systemd?

# systemctl poweroff
o
# systemctl reboot

Non vorrei che le vecchie modalità non siano al 100% funzionanti in
tutte le casistiche.

Lanciando ls -l /usr/sbin/shutdown mi dice che punta a /bin/systemctl
quindi credo utilizzi gia systemctl di default o sbaglio?

qualcosa mi sfugge:

1) se non ricordo male shutdown usa il parametro -h per indicare quando
    quindi shutdown -h now
    ma systemctl usa -h per l'help

2) systemctl può essere invocato anche come systemctl halt che non spegne
    la macchina

ma
$ man shutdown
[...]
-h
    The same as --poweroff, but does not override the action to take if it
    is "halt". E.g.  shutdown --reboot -h means "poweroff", but
    shutdown --halt -h means "halt".
[...]

$ man systemctl
[...]
  -h, --help
            Print a short help text and exit.
[...]

Ed effettivamente
$ ls -l /usr/sbin/shutdown
lrwxrwxrwx  /usr/sbin/shutdown -> ../bin/systemctl

probabilmente in systemctl c'è un wrapper che guarda se il comando eseguito
è showtdown allora trasforma quanto passato...

ora non ho voglia di provare... odio riavviare o spegnere e riaccendere

Non dirlo a me, sto diventando scemo a forza di accendere/spegnere/riavviare


Bho, io proverei ad usare systemctl


Non mi resta che provare e verificare ulteriormente.

Grazie.

Saluti, Alessandro.


Reply to: