Re: Problema kernel panic durante shutdown o reboot con raid

Davide Prina <[email protected]>
Newsgroups gmane.linux.debian.user.italian
Message-ID <trinity-c2b90443-653a-42d2-b023-8c57884f50b3-1743929662189@3c-app-mailcom-lxa16>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.