summaryrefslogtreecommitdiff
path: root/exportfs.service
diff options
context:
space:
mode:
Diffstat (limited to 'exportfs.service')
-rw-r--r--exportfs.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/exportfs.service b/exportfs.service
new file mode 100644
index 0000000..8653283
--- /dev/null
+++ b/exportfs.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Export filesystems over NFS
+After=nfsd.service
+Requires=nfsd.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/exportfs -ar
+ExecStop=/usr/sbin/exportfs -au
+StandardOutput=syslog
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target