I have been using
- Code: Select all
sudo shutdown
- Code: Select all
sudo halt
Thanks.
Albert.
sudo shutdownsudo haltluan0ma wrote:I use "sudo init 0" to shutdown. save some typing.
penguintutor wrote:Halt actually calls the shutdown command.
as taken from the Linux man page for halt:
"this simply invokes the shutdown(8) tool with the appropriate arguments"
penguintutor wrote:It's true that the shutdown command can be used to send out a message to users about the impending shutdown, but how many people manage a system where multiple users are connected via a terminal / command shell session these days?
andrum99 wrote:You should not get in the habit of using 'sudo halt' to shutdown your Pi as on other UNIX systems this performs an immediate unclean shutdown
SimonSmall wrote:andrum99 wrote:You should not get in the habit of using 'sudo halt' to shutdown your Pi as on other UNIX systems this performs an immediate unclean shutdown
Do you have any source for this information? I have checked and I cannot find anything about an unclean shutdown.
SimonSmall wrote:Do you have any source for this information? I have checked and I cannot find anything about an unclean shutdown
No, halt takes very limited options, many of them dangerous. shutdown is the only method that allows to specify a time delay and message, and the only method that would be acceptable on a production server. (In a non-emergency.)SimonSmall wrote:* Using sudo halt with additional parameters can provide the message and other options to shutdown
There is a difference between "halt -f" (instant halt) and "poweroff -f" (instant poweroff). The Pi can have the SoC put into a low-power state.* The Pi cannot have the power turned off by the software, so halt / poweroff does not matter
Now run the halt command on all of them.
cantfindausername wrote:Sorry to take this topic on possibly another tangent, but once we've sent the shutdown command and its just sat there with the red PWR light on, how can we restart it? Is it a case of unplugging and plugging back in? Reason I ask is because I want it all hidden, so pulling power is not going to be easy. Is there any other way to restart the pi after shutdown?
Thanks
Ant
RaTTuS wrote:you have to power cycle it though on the later boards there is a reset header
but if it's hidden away then you don't need to
sudo shutdown - h now
you can
sudo shutdown -r now
to reboot it.
penguintutor wrote:how many people manage a system where multiple users are connected via a terminal / command shell session these days?