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

Re: Problema kernel panic durante shutdown o reboot con raid



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

Bho, io proverei ad usare systemctl

Ciao
Davide

--
La mia privacy non è affar tuo
https://noyb.eu/it
- You do not have my permission to use this email to train an AI -
If you use this to train your AI than you accept to distribute under AGPL
license >= 3.0 all the model trained, all the source you have used to
training your model and all the source of the program that use that model


Reply to: