On Wed, 10 Aug 2011 07:47:45 +0100 Tejas Guruswamy <tejas.guruswamy@opensuse.org> wrote: <snipped>
Has noone read the manpages?
man halt:
" If halt or reboot is called when the system is not in runlevel 0 or 6, in other words when it's running normally, shutdown will be invoked instead (with the -h or -r flag). For more info see the shutdown(8) manpage. "
and furthermore:
man shutdown: " shutdown does its job by signalling the init process, asking it to change the runlevel. Runlevel 0 is used to halt the system, runlevel 6 is used to reboot the system, and runlevel 1 is used to put to system into a state where administrative tasks can be performed; this is the default if neither the -h or -r flag is given to shutdown. "
So everyone arguing about the best way to shutdown/reboot is actually doing the EXACT SAME THING.
Regards, Tejas
Hi Tejas, For the record, I haven't been "arguing" at all. I merely responded to a post describing badly behaving "reboot" and "shutdown" commands and asking for suggestions. I have personally deduced over a long period of time and covering innumerable SuSE > openSUSE installations that, for whatever reason or reasons, and these are indisputably likely installation-specific factors, "reboot" and "shutdown" simply do not "just work" and have never "just worked" as reliably for me as "init". Yes, I've RTFM many times and worked diligently over the years to resolve the anomalous behaviors, when encountered. In every case, falling back to "init" has resolved the issue. Eventually, I just quit experimenting with the others. I mean ... why bother? I am not a glutton for punishment so I use what "just works." I am not engaged in an academic exercise here. I use my systems to accomplish work. Getting bogged down in trivialities is a waste of my time. I never inferred that my approach would be suitable for any other distribution. I did not state that this is a "perfect" solution that ought to be adopted by everyone. I did not mistakenly suggest that the OP try "shutdown -h" to remotely restart his system, as someone else did who took issue with my approach. Hopefully, he succeeded with "init 6" as I recommended and has moved on with his life. Finally, I agree in theory that the commands in question are virtually identical. But the theory fails each time it encounters an 'anomalous' installation, which it inevitably and incontrovertibly does. regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org