File: all-syslog.sh

package info (click to toggle)
zfs-linux 0.6.5.9-5~bpo8%2B1
  • links: PTS, VCS
  • area: contrib
  • in suites: jessie-backports
  • size: 15,468 kB
  • sloc: ansic: 182,812; sh: 11,864; python: 1,683; makefile: 1,586; asm: 1,302; perl: 679; sed: 13; awk: 5
file content (10 lines) | stat: -rwxr-xr-x 260 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
#
# Log the zevent via syslog.

[ -f "${ZED_ZEDLET_DIR}/zed.rc" ] && . "${ZED_ZEDLET_DIR}/zed.rc"
. "${ZED_ZEDLET_DIR}/zed-functions.sh"

zed_log_msg "eid=${ZEVENT_EID}" "class=${ZEVENT_SUBCLASS}" \
    "${ZEVENT_POOL:+"pool=${ZEVENT_POOL}"}"
exit 0