mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 18:31:00 +03:00
e20c9330d7
By locking the log file itself, we can omit arduous rebinding and explicit umask setting, but, perhaps more importantly, avoid permanently littering /var/lock/ with zed.debug.log.lock we will never delete It is imperative that the previous commit ("zed-functions.sh: zed_lock(): don't truncate lock") be included in any series that contains this one Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12042
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
include $(top_srcdir)/config/Rules.am
|
|
include $(top_srcdir)/config/Substfiles.am
|
|
include $(top_srcdir)/config/Shellcheck.am
|
|
|
|
EXTRA_DIST += README
|
|
|
|
zedconfdir = $(sysconfdir)/zfs/zed.d
|
|
|
|
dist_zedconf_DATA = \
|
|
zed-functions.sh \
|
|
zed.rc
|
|
|
|
zedexecdir = $(zfsexecdir)/zed.d
|
|
|
|
dist_zedexec_SCRIPTS = \
|
|
all-debug.sh \
|
|
all-syslog.sh \
|
|
data-notify.sh \
|
|
generic-notify.sh \
|
|
resilver_finish-notify.sh \
|
|
scrub_finish-notify.sh \
|
|
statechange-led.sh \
|
|
statechange-notify.sh \
|
|
vdev_clear-led.sh \
|
|
vdev_attach-led.sh \
|
|
pool_import-led.sh \
|
|
resilver_finish-start-scrub.sh \
|
|
trim_finish-notify.sh
|
|
|
|
nodist_zedexec_SCRIPTS = history_event-zfs-list-cacher.sh
|
|
|
|
SUBSTFILES += $(nodist_zedexec_SCRIPTS)
|
|
|
|
zedconfdefaults = \
|
|
all-syslog.sh \
|
|
data-notify.sh \
|
|
history_event-zfs-list-cacher.sh \
|
|
resilver_finish-notify.sh \
|
|
scrub_finish-notify.sh \
|
|
statechange-led.sh \
|
|
statechange-notify.sh \
|
|
vdev_clear-led.sh \
|
|
vdev_attach-led.sh \
|
|
pool_import-led.sh \
|
|
resilver_finish-start-scrub.sh
|
|
|
|
install-data-hook:
|
|
$(MKDIR_P) "$(DESTDIR)$(zedconfdir)"
|
|
for f in $(zedconfdefaults); do \
|
|
test -f "$(DESTDIR)$(zedconfdir)/$${f}" -o \
|
|
-L "$(DESTDIR)$(zedconfdir)/$${f}" || \
|
|
ln -s "$(zedexecdir)/$${f}" "$(DESTDIR)$(zedconfdir)"; \
|
|
done
|
|
chmod 0600 "$(DESTDIR)$(zedconfdir)/zed.rc"
|
|
|
|
# False positive: 1>&"${ZED_FLOCK_FD}" looks suspiciously similar to a >&filename bash extension
|
|
CHECKBASHISMS_IGNORE = -e 'should be >word 2>&1' -e '&"$${ZED_FLOCK_FD}"'
|