17 lines
361 B
SYSTEMD
17 lines
361 B
SYSTEMD
[Unit]
|
|
Description=ZFS file system shares
|
|
After=nfs-server.service nfs-kernel-server.service
|
|
After=smb.service
|
|
After=zfs-mount.service
|
|
PartOf=nfs-server.service nfs-kernel-server.service
|
|
PartOf=smb.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStartPre=-@bindir@/rm -f /etc/dfs/sharetab
|
|
ExecStart=@sbindir@/zfs share -a
|
|
|
|
[Install]
|
|
WantedBy=zfs.target
|