idled − example automatic halting daemon |
idled |
idled is a sample automatic halting daemon written in shell script that is known to work under Bash (other shells not tested). You are advised to write your own automatic halting daemon since the tests in this one may or may not work/be appropriate for your system. This daemon is designed to be run in your startup scripts and continue running in the background while the system is on. It initially checks to see if no users are logged in (even on pseudo-terminals such as screen!). If no one is logged in, it monitors the 5 minute load average from /proc/loadavg (which may not be available on all systems). If the load average has been low for a certain number of minutes, idled attempts to halt the system with tryhalt(8). Be sure to customize this script for your system so that it doesn’t accidentally halt the system while you are logged in!!! |
Jared Krinke <deraj@users.sourceforge.net> |
shuriken(7) |
If you value the Shuriken uptime scheduler, have a PayPal account, and are feeling generous, please make a micropayment donation to furiousj@u.washington.edu to support the author. Suggested donation: $0.25. Credit card payments are currently not accepted due to overhead. |