diff mbox series

[8/8] Add fsid systemd service file

Message ID 20230418093350.4550-9-richard@nod.at (mailing list archive)
State New, archived
Headers show
Series nfs-utils: Improving NFS re-export wrt. crossmnt | expand

Commit Message

Richard Weinberger April 18, 2023, 9:33 a.m. UTC
Co-developed-by: Chris Chilvers <chris.chilvers@appsbroker.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
---
 systemd/Makefile.am   |  3 ++-
 systemd/fsidd.service | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 systemd/fsidd.service
diff mbox series

Patch

diff --git a/systemd/Makefile.am b/systemd/Makefile.am
index 2e250dca..b4483222 100644
--- a/systemd/Makefile.am
+++ b/systemd/Makefile.am
@@ -15,7 +15,8 @@  unit_files =  \
     rpc-statd-notify.service \
     rpc-statd.service \
     \
-    proc-fs-nfsd.mount
+    proc-fs-nfsd.mount \
+    fsidd.service
 
 rpc_pipefs_mount_file = \
     var-lib-nfs-rpc_pipefs.mount
diff --git a/systemd/fsidd.service b/systemd/fsidd.service
new file mode 100644
index 00000000..9cb480e3
--- /dev/null
+++ b/systemd/fsidd.service
@@ -0,0 +1,10 @@ 
+[Unit]
+Description=NFS FSID Daemon
+After=local-fs.target
+Before=nfs-mountd.service nfs-server.service
+
+[Service]
+ExecStart=/usr/sbin/fsidd
+
+[Install]
+RequiredBy=nfs-mountd.service nfs-server.service