Click to See Complete Forum and Search --> : Trouble shutting down PC thru SSH


Azrael808
12-06-2002, 12:19 AM
I have a P120 running SuSE Linux 8.0 which is being used as my router/proxy to the internet. I can log into the box as root using SSH, but if I issue the command:

shutdown -r now

The box just freezes, and won't shut down. I have to use the reset button.

If I issue the shutdown command at the box using the keyboad plugged into it (with no monitor to guide me!) it shuts down fine.

Does anyone have any ideas?

Thanks in advance

Pete

shad0w
12-06-2002, 10:43 AM
shutdown -r now will REBOOT the machine. Use the -h switch that will halt it.

example:

blah@foo # shutdown -h now

if you are trying to reboot try: reboot


or (at least on solaris) you can issue the init level you want it to go to. 0-6

init 6 would reboot
init 0 should halt the machine

I'm not sure if it works on redcrack, I haven't tried, but it is System V (kind of) so it may work.

Azrael808
12-06-2002, 10:58 AM
Cheers mate, that works a treat!!!


Pete