[plt-scheme] Linux question

From: Eli Barzilay (eli at barzilay.org)
Date: Tue May 15 15:44:59 EDT 2007

On May 13, David Gurvich wrote:
> On Sunday 13 May 2007 08:32:58 Paulo J. Matos wrote:
> > On 5/13/07, Eli Barzilay <eli at barzilay.org> wrote:
> > > I figure it won't hurt to ask: does anyone know of a way to
> > > reboot a linux machine by only creating, deleting, or modifying
> > > a file?
> You could setup a cron job that checks for the presence of a file
> and does something depending on whether that file exists or not.
> I'm sure there are many more ways.

(The problem with this is that it requires a new process to start.
The problem I had was with a machine that was semi-frozen -- I
couldn't run new processes, but I still had a workable Emacs.)

On May 14, Cyprien Nicolas wrote:
> Using Software Suspend (in ACPI configuration menu) in Linux Kernel,
> echo reboot > /sys/power/disk
> echo disk > /sys/power/state
> Will cause the system to suspend itself and then reboot.  If you use
> the 'Default resume partition' in kernel configuration or the
> --resume kernel parameter at boot, and reboot on the same kernel,
> then the system will resume system and memory after rebooting.
> Otherwise, the suspended state will be erased and the system will
> boot normaly like if you have typed halt, init 6 or telinit 6,
> except the time spent to save memory onto SWAP partition.
> Maybe there is other options to /sys/power/state in order to tell the kernel
> you don't want to suspend system, but I don't know them.

I'll try this if it happens again.  I also had this suggestion:

  echo 6 > /dev/initctl

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.