From 181bd8cf5360d55ba5b2b7290669e3eac539da94 Mon Sep 17 00:00:00 2001 From: LOLi Date: Fri, 13 Jan 2017 22:24:17 +0100 Subject: [PATCH] Fix zfs-share systemd unit file Use the system /bin directory rather than the package install @bindir@. This allows --prefix=/usr/local to work as intended. Reviewed-by: Brian Behlendorf Signed-off-by: loli10K Closes #5559 --- etc/systemd/system/zfs-share.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/systemd/system/zfs-share.service.in b/etc/systemd/system/zfs-share.service.in index 688731ea3e..494f5cbef7 100644 --- a/etc/systemd/system/zfs-share.service.in +++ b/etc/systemd/system/zfs-share.service.in @@ -9,7 +9,7 @@ PartOf=smb.service [Service] Type=oneshot RemainAfterExit=yes -ExecStartPre=-@bindir@/rm -f /etc/dfs/sharetab +ExecStartPre=-/bin/rm -f /etc/dfs/sharetab ExecStart=@sbindir@/zfs share -a [Install]