xref: /freebsd/sys/contrib/openzfs/etc/systemd/system/zfs-share.service.in (revision 3e8eb5c7f4909209c042403ddee340b2ee7003a5)
1[Unit]
2Description=ZFS file system shares
3Documentation=man:zfs(8)
4After=nfs-server.service nfs-kernel-server.service
5After=smb.service
6Before=rpc-statd-notify.service
7Wants=zfs-mount.service
8After=zfs-mount.service
9PartOf=nfs-server.service nfs-kernel-server.service
10PartOf=smb.service
11ConditionPathIsDirectory=/sys/module/zfs
12
13[Service]
14Type=oneshot
15RemainAfterExit=yes
16EnvironmentFile=-@initconfdir@/zfs
17ExecStart=@sbindir@/zfs share -a
18
19[Install]
20WantedBy=zfs.target
21