diff --git a/etc/systemd/system/zfs-share.service.in b/etc/systemd/system/zfs-share.service.in index d62e3407c..c27bbf903 100644 --- a/etc/systemd/system/zfs-share.service.in +++ b/etc/systemd/system/zfs-share.service.in @@ -10,4 +10,5 @@ PartOf=smb.service [Service] Type=oneshot RemainAfterExit=yes +ExecStartPre=-@bindir@/rm /etc/dfs/sharetab ExecStart=@sbindir@/zfs share -a