From 1e17e910ea315c0c3f732a7e8d31229dbd1e6069 Mon Sep 17 00:00:00 2001 From: SenH Date: Tue, 8 Sep 2015 09:45:22 -0700 Subject: [PATCH] Force create /run/sendsigs.omit.d link when starting zed Resolve the following error when restarting the zed by force creating the /run/sendsigs.omit.d/zed link. sudo /etc/init.d/zfs-zed restart * Stopping ZFS Event Daemon [ OK ] * Starting ZFS Event Daemon ln: failed to create symbolic link `/run/sendsigs.omit.d/zed': File exists Signed-off-by: SenH Signed-off-by: Brian Behlendorf Closes #3747 --- etc/init.d/zfs-functions.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/init.d/zfs-functions.in b/etc/init.d/zfs-functions.in index 68cb1bb523..1bdb01dda4 100644 --- a/etc/init.d/zfs-functions.in +++ b/etc/init.d/zfs-functions.in @@ -150,7 +150,7 @@ zfs_daemon_start() # so add the zed pid to list of pids to ignore. if [ -f "$PIDFILE" -a -d /run/sendsigs.omit.d ] then - ln -s "$PIDFILE" /run/sendsigs.omit.d/zed + ln -sf "$PIDFILE" /run/sendsigs.omit.d/zed fi elif type daemon > /dev/null 2>&1 ; then # Fedora/RedHat functions