1
0
mirror of https://git.proxmox.com/git/mirror_zfs.git synced 2025-03-30 15:28:49 +03:00
mirror_zfs/cmd/zed/zed.d/all-syslog.sh

11 lines
260 B
Bash
Raw Normal View History

#!/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