diff options
author | SenH <[email protected]> | 2015-09-08 09:45:22 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-09-08 09:45:34 -0700 |
commit | 1e17e910ea315c0c3f732a7e8d31229dbd1e6069 (patch) | |
tree | 32f97bd076ddd061830f2550e5097900ab79515c /etc/init.d | |
parent | 3b36f8319d56842c85782e7842218a7499f3cf16 (diff) |
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3747
Diffstat (limited to 'etc/init.d')
-rw-r--r-- | etc/init.d/zfs-functions.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/init.d/zfs-functions.in b/etc/init.d/zfs-functions.in index 68cb1bb52..1bdb01dda 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 |