aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLOLi <[email protected]>2017-01-13 22:24:17 +0100
committerBrian Behlendorf <[email protected]>2017-01-13 13:24:17 -0800
commit181bd8cf5360d55ba5b2b7290669e3eac539da94 (patch)
tree1499fa0697ead29614dddde418c2dc4824cb98a1
parent0bc63d83f62374f688366caed69946a93e29f57d (diff)
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 <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #5559
-rw-r--r--etc/systemd/system/zfs-share.service.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/systemd/system/zfs-share.service.in b/etc/systemd/system/zfs-share.service.in
index 688731ea3..494f5cbef 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]