From: Jim K. <jim...@ya...> - 2007-02-10 02:55:38
|
Thanks, We need to do remote monitoring/control, so the ability to reliably reset from miles away is important. --- Dave Hylands <dhy...@gm...> wrote: > Hi guys, > > > Two ways I can think of: > > > > 1. system("reboot") > > This is probably better than the watchdog timer (in that you get an > orderly shutdown), but isn't guaranteed to succeed. The watchdog > timer > is more like pressing the reset button, which may cause loss of data. > > > 2. load the watchdog monitor, then open /dev/watchdog, write a byte > > to it, and wait for the timeout to reset you. > > You should probably do both. Write the byte to the watchdog device, > and then issue the system ("reboot" ) command. If the reboot command > hangs or otherwise fails, then the watchdog will do a hardware reset. > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > ____________________________________________________________________________________ The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php |