I would like to use powernap for putting my media server into suspend mode, and I haven't been able to find any example /etc/powernap/action scripts out there, except these:
one
two
three
Does anybody have a good script or recommend particular
techniques with its use?
From the comments of the default /etc/powernap/action script:
# You may do one of:
# 1) Write your own custom script below and make this file executable,
# calling some specific action, such as:
# /usr/sbin/pm-suspend
# /usr/sbin/pm-hibernate
# /sbin/poweroff
# echo 'I am wasting electricity' | mail
[email protected]
# 2) Replace this file with an executable script or binary
# 3) Symlink this file to some other executable script or binary