lkml.org 
[lkml]   [2005]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Forcing an immediate reboot
On 10/15/05, Willy Tarreau <willy@w.ods.org> wrote:
> On Fri, Oct 14, 2005 at 06:46:46PM -0700, Marc Perkel wrote:
> > Is there any way to force an immediate reboot as if to push the reset
> > button in software? Got a remote server that i need to reboot and
> > shutdown isn't working.
>
> If you can telnet it, simply use this :
>
> # echo 1 >/proc/sys/kernel/sysrq
> # echo b >/proc/sysrq-trigger
>
> It's dirty and you'll have an fsck. But it will nearly always work.

You may avoid the fsck by:

# echo s >/proc/sysrq-trigger
# echo u >/proc/sysrq-trigger

> I use it a lot in local on distros on which the shutdown process is
> as long as the boot process (you know, the ones which display lots
> of 'OK' or wait indefinitely for some dead services to stop, when
> you really want them to reboot quickly).
--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-15 08:53    [W:0.259 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site