[Voyage-linux] Orderly Shutdown
Darshaka Pathirana
(spam-protected)
Thu May 13 20:56:04 HKT 2010
Hi!
On 05/13/2010 03:42 AM, Leon Hauck wrote:
> I'm getting ready to implement a Voyage Linux system using an Alix 3D3
> board and was wondering what the proper procedure was for initiating an
> orderly shutdown on it without having ssh or a serial console connected.
>
> Looking at the manual there is reference to a "MODESW# GPIO G24" but I
> couldn't see it referenced
> on the schematic. I suppose in theory a momentary switch could be
> connected to it to initiate a shutdown.
I am also not aware of a "built-in" reboot/shutdown function and also
wanted to implement such function handling the switch to initiate a proper
reboot for ages now but never did so...
I you find out more please let us know...
> I am going to have a web server running on machine on a private network,
> so at the moment I'm thinking that I'll implement a url that if called
> with the correct cryptic parameters that it would initiate an orderly
> shutdown. Then I can just have that URL bookmarked on my android or iphone.
>
> Normally it wouldn't matter since the main filesystem is mounted read
> only, howerver I am going to have one partition that is going to me
> mounted rw and will be saving data to it, so I'll want it cleanly
> unmounted prior to power off.
We implemented a php-over-webserver function which mainly is a system
call to "sudo reboot" (and adding www-data to sudoers with
the NOPASSWD option)... works fine so far.
Regards,
- Darsha
More information about the Voyage-linux
mailing list