zfs-builds-mm/zfs-0.8.0/etc/systemd/system/zfs-share.service

19 lines
420 B
SYSTEMD
Raw Normal View History

2019-07-06 23:40:11 +02:00
[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
PartOf=nfs-server.service nfs-kernel-server.service
PartOf=smb.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=-/bin/rm -f /etc/dfs/sharetab
ExecStart=/usr/local/sbin/zfs share -a
[Install]
WantedBy=zfs.target