aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/etc/systemd/system/zfs-share.service.in
blob: 745077513c30e749f84a2488ab2bb1439827b1a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=ZFS file system shares
Documentation=man:zfs(8)
After=nfs-server.service nfs-kernel-server.service
After=smb.service
Before=rpc-statd-notify.service
Wants=zfs-mount.service
After=zfs-mount.service
PartOf=nfs-server.service nfs-kernel-server.service
PartOf=smb.service
ConditionPathIsDirectory=/sys/module/zfs

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=@sbindir@/zfs share -a

[Install]
WantedBy=zfs.target