What are some good examples of Powernap scripts and its use?
Posted
by
shootingstars
on Ask Ubuntu
See other posts from Ask Ubuntu
or by shootingstars
Published on 2012-11-24T14:27:24Z
Indexed on
2012/11/25
11:22 UTC
Read the original article
Hit count: 239
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:
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
© Ask Ubuntu or respective owner