Skip to content

Commit

Permalink
Force create /run/sendsigs.omit.d link when starting zed
Browse files Browse the repository at this point in the history
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 <sen@senhaerens.be>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#3747
  • Loading branch information
SenH authored and behlendorf committed Sep 8, 2015
1 parent 3b36f83 commit 1e17e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/init.d/zfs-functions.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e17e91

Please sign in to comment.