aboutsummaryrefslogtreecommitdiffstats
path: root/etc/systemd/system/zfs-share.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'etc/systemd/system/zfs-share.service.in')
-rw-r--r--etc/systemd/system/zfs-share.service.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/systemd/system/zfs-share.service.in b/etc/systemd/system/zfs-share.service.in
new file mode 100644
index 000000000..a21c9c663
--- /dev/null
+++ b/etc/systemd/system/zfs-share.service.in
@@ -0,0 +1,11 @@
+[Unit]
+Description=ZFS file system shares
+After=nfs-server.service
+After=smb.service
+PartOf=nfs-server.service
+PartOf=smb.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=@sbindir@/zfs share -a