summaryrefslogtreecommitdiffstats
path: root/cmd/zed/zed.d/zed.rc
diff options
context:
space:
mode:
authorChris Dunlap <[email protected]>2015-02-26 16:26:48 -0800
committerBrian Behlendorf <[email protected]>2015-04-27 12:08:08 -0700
commita0d065fa922d2ce2e07785eb3d35757763c644bf (patch)
tree150b18e6857c67a384a30886db1f97281bdca31c /cmd/zed/zed.d/zed.rc
parent20967ff1a4c2ff3f706505222dd66b3b15645596 (diff)
Add support for Pushbullet notifications
This commit adds the zed_notify_pushbullet() function and hooks it into zed_notify(), thereby integrating it with the existing "notify" ZEDLETs. This enables ZED to push notifications to your desktop computer and/or mobile device(s). It is configured with the ZED_PUSHBULLET_ACCESS_TOKEN and ZED_PUSHBULLET_CHANNEL_TAG variables in zed.rc. https://www.pushbullet.com/ The Makefile install-data-local target has been replaced with install-data-hook. With the "-local" target, there is no particular guarantee of execution order. But with the zed.rc now potentially containing sensitive information (i.e., the Pushbullet access token), the recommended permissions have changed to 0600. The "-hook" target is always executed after the main rule's work is done; thus, the chmod will always take place after the zed.rc file has been installed. https://www.gnu.org/software/automake/manual/automake.html#Extending Signed-off-by: Chris Dunlap <[email protected]>
Diffstat (limited to 'cmd/zed/zed.d/zed.rc')
-rw-r--r--cmd/zed/zed.d/zed.rc20
1 files changed, 20 insertions, 0 deletions
diff --git a/cmd/zed/zed.d/zed.rc b/cmd/zed/zed.d/zed.rc
index 05f84c877..c2336287f 100644
--- a/cmd/zed/zed.d/zed.rc
+++ b/cmd/zed/zed.d/zed.rc
@@ -1,5 +1,7 @@
##
# zed.rc
+#
+# This file should be owned by root and permissioned 0600.
##
##
@@ -32,6 +34,24 @@
#ZED_NOTIFY_VERBOSE=0
##
+# Pushbullet access token.
+# This grants full access to your account -- protect it accordingly!
+# <https://www.pushbullet.com/get-started>
+# <https://www.pushbullet.com/account>
+# Disabled by default; uncomment to enable.
+#
+#ZED_PUSHBULLET_ACCESS_TOKEN=""
+
+##
+# Pushbullet channel tag for push notification feeds that can be subscribed to.
+# <https://www.pushbullet.com/my-channel>
+# If not defined, push notifications will instead be sent to all devices
+# associated with the account specified by the access token.
+# Disabled by default; uncomment to enable.
+#
+#ZED_PUSHBULLET_CHANNEL_TAG=""
+
+##
# Default directory for zed state files.
#
#ZED_RUNDIR="/var/run"