Halt not reboot

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
zaurux
Posts: 14
Joined: Wed Feb 20, 2019 8:02 pm

Halt not reboot

Post by zaurux »

When i try this command "shutdown - r now". My Allo USBridge under dietpi 6.21 stop immediately but no more reboot !! :roll:
User avatar
WarHawk
Posts: 634
Joined: Thu Jul 20, 2017 8:55 am

Re: Halt not reboot

Post by WarHawk »

shutdown -h now shutsdown and halts the system
-r = reboot

If you want to do a full reboot try just reboot then

Are you wanting to reboot the system correct?
User avatar
MichaIng
Site Admin
Posts: 2423
Joined: Sat Nov 18, 2017 6:21 pm

Re: Halt not reboot

Post by MichaIng »

Yeah reboot is what I use as well.

I remember some shutdown -r/-h command options require systemd-logind or dbus or something to work, which we disable by default. Can't remember anymore. Perhaps the options are ignored without the above, so simply shutdown now is performed?

Just checked on a Buster VM:
root@VM-Buster:~# shutdown -h
Failed to connect to bus: No such file or directory

But indeed it did shutdown.
shutdown -r now worked as well.

Testing on Stetch VM:
root@VM-Stretch:~# shutdown -r
Failed to connect to bus: No such file or directory
root@VM-Stretch:~# shutdown -r now

The first fails with this error, the second works.

So I guess the timer (1 minute by default) of the shutdown commands requires dbus, but with now all works fine here :?.
Post Reply