powernapd

Langue: en

Version: 364697 (ubuntu - 25/10/10)

Section: 8 (Commandes administrateur)

NAME

powernapd - configurable daemon that will run at a specified INTERVAL_SECONDS, executing powernap when all of a list of MONITORED_PROCESSES are missing from the system process table for a contiguous ABSENT_SECONDS.

DESCRIPTION

powernapd will run powernap(8) when none of a set of MONITORED_PROCESSES have executed for some number of ABSENT_SECONDS.

powernapd will check the process table using "ps -eo args" every INTERVAL_SECONDS. Note that MONITORED_PROCESSES taking less than INTERVAL_SECONDS to execute may be overlooked by powernapd. Choose your INTERVAL_SECONDS value accordingly. These parameters are configured in /etc/powernap/config.

Use "ps -eo args" for sample output and development your regular expressions.

It acts as a sort of "screensaver" for servers, watching the process table for activity, rather than the keyboard or mouse. For instance, PowerNap can automatically "pm-suspend" a system if no instance of "kvm" runs for some contiguous block of "300" seconds, checking the process table every "1" second.

http://launchpad.net/powernap

FILES

/etc/powernap/action, /etc/powernap/config, /var/run/powernap.pid, /var/log/powernap.log, /var/log/powernap.err

SEE ALSO

pgrep(1), powernap(8))

AUTHOR

This manpage and the utility was written by Dustin Kirkland <kirkland@canonical.com> for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.

On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.