On Tue, 09 Aug 2011 09:50:40 +0100 Dave Howorth <dhoworth@mrc-lmb.cam.ac.uk> wrote:
I regularly use shutdown -h now via ssh on my systems and it works. You don't say what system you're running so I couldn't begin to suggest why yours doesn't. I don't see why it should be necessary to use magic incantations like init 6. I agree with what Carlos suggests.
"magic"? LOL!! Don't be silly! Which of the following requires the most "magic" to remember? a) init 0 to 5, where the argument corresponds to the run level or b) "reboot" with -n: don't sync before halting the system -w: only write a wtmp reboot record and exit. -d: don't write a wtmp record. -f: force halt/reboot, don't call shutdown. -h: put harddisks in standby mode. -i: shut down all network interfaces. or "shutdown" with -n: don't sync before halting the system -w: only write a wtmp reboot record and exit. -d: don't write a wtmp record. -f: force halt/reboot, don't call shutdown. -h: put harddisks in standby mode. -i: shut down all network interfaces. Not to mention your "-h" example is to put the hard disks in standby mode not to reboot, which was the OP's topic. Finally, I'm pretty sure I use init because I've found over time that it consistently yields the most reliable results. Of course, this is Linux so you are free to differ and choose your own medicine. bye Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org