mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 10:21:01 +03:00
1b95fd5d70
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 <dswartz@druber.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #2883
15 lines
302 B
SYSTEMD
15 lines
302 B
SYSTEMD
[Unit]
|
|
Description=ZFS file system shares
|
|
After=nfs-server.service
|
|
After=smb.service
|
|
After=zfs-mount.service
|
|
Requires=zfs-mount.service
|
|
PartOf=nfs-server.service
|
|
PartOf=smb.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStartPre=-@bindir@/rm /etc/dfs/sharetab
|
|
ExecStart=@sbindir@/zfs share -a
|