Re: Problema kernel panic durante shutdown o reboot con raid

Marco Ciampa <[email protected]>
Newsgroups gmane.linux.debian.user.italian
Message-ID <Z_KFWsRvnDC15-rB@marco-TUXEDO-Pulse-15-Gen2>
Il Sun, Apr 06, 2025 at 12:01:52PM +0200, Alessandro Baggi ha scritto:
> 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.

Hai provato ad usare poweroff?

which shutdown
/usr/sbin/shutdown
$ ls -l /usr/sbin/shutdown
lrwxrwxrwx 1 root root 16 feb 21 22:18 /usr/sbin/shutdown -> ../bin/systemctl
$ which poweroff 
/usr/sbin/poweroff
$ ls -l /usr/sbin/poweroff 
lrwxrwxrwx 1 root root 16 feb 21 22:18 /usr/sbin/poweroff -> ../bin/systemctl
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.