Operating System - Linux
1825793 Members
2694 Online
109687 Solutions
New Discussion

cant reboot or shutdown my dl380 g7 with ssh

 
hesam
Advisor

cant reboot or shutdown my dl380 g7 with ssh

hello i have HP Dl380 g7 and I installed Debian 5.07 amd-64 on it i can reboot my server from linux command console But when i ssh to my Server from other Client it take a long time to reboot an my server doesn't reboot and still working Although show in My Server Monitor your system will be reboot .....
What is the Problem
Thanks
3 REPLIES 3
hesam
Advisor

Re: cant reboot or shutdown my dl380 g7 with ssh

hi everybody i can reboot from ssh with this command : reboot -f
but i dont know why reboot dont work from command and what is my problem
any way my problem is solved .
Thanks
Matti_Kurkela
Honored Contributor

Re: cant reboot or shutdown my dl380 g7 with ssh

"reboot -f" will not shutdown the system cleanly: it is the equivalent of using "kill -9" to stop everything.

It's not a recommended procedure: it's more like an emergency procedure for situations like a) when you *know* all the important processes have already been shut down and you need the system down ASAP, or b) when you've booted using a special boot option like "init=/bin/bash" to fix system start-up problems and you know the normal shutdown procedure won't work in that state.

When you run "shutdown -r now" or "reboot", the system will run all the /etc/rc6.d/K* scripts in alphanumerical order. Typically each script will output a message (to the system console), telling you what it is shutting down. Look at the messages to identify which script is taking a lot of time, or getting stuck in an infinite loop.

MK
MK
Alzhy
Honored Contributor

Re: cant reboot or shutdown my dl380 g7 with ssh


root@client# ssh server /sbin/shutdown -ry now

Assuming client is trusted (ssh keys) by server.
Hakuna Matata.