Skip to content

Commit

Permalink
Improve systemd script to not leave stale sharetab
Browse files Browse the repository at this point in the history
The systemd script zfs-share.service does 'zfs share -a' to share
any required datasets.  Unfortunately, /etc/dfs/sharetab is stale
from the previous boot.  Delete it before we share.

Signed-off-by: Dan Swartzendruber <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #2883
  • Loading branch information
dswartz authored and behlendorf committed Dec 18, 2014
1 parent c944be5 commit 1b95fd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etc/systemd/system/zfs-share.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ PartOf=smb.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=-@bindir@/rm /etc/dfs/sharetab
ExecStart=@sbindir@/zfs share -a

0 comments on commit 1b95fd5

Please sign in to comment.