mirror_zfs/etc/systemd/system/zfs-share.service.in

15 lines
302 B
SYSTEMD
Raw Normal View History

[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