aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zed/zed.d/all-syslog.sh
blob: acf9e83bde3a15d39ae6d1c9edc8cc77bdec561a (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#
# Log the zevent via syslog.
#
test -f "${ZED_ZEDLET_DIR}/zed.rc" && . "${ZED_ZEDLET_DIR}/zed.rc"

logger -t "${ZED_SYSLOG_TAG:=zed}" -p "${ZED_SYSLOG_PRIORITY:=daemon.notice}" \
  eid="${ZEVENT_EID}" class="${ZEVENT_SUBCLASS}" \
  "${ZEVENT_POOL:+pool=$ZEVENT_POOL}"

exit 0