aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Fellinger <m.fellinger@gmail.com>2013-03-03 19:18:11 +0100
committerMichael Fellinger <m.fellinger@gmail.com>2013-03-03 19:18:11 +0100
commite828f11b92472d9dbf7d9e3e81640f93d6715c08 (patch)
treefbd730d6b66144720c148b2f2d5bf7b1bb05d863
parentb7c8ce64a13a811db093ec51915a095dc1c78fdb (diff)
downloadrunit-services-e828f11b92472d9dbf7d9e3e81640f93d6715c08.zip
runit-services-e828f11b92472d9dbf7d9e3e81640f93d6715c08.tar.gz
runit-services-e828f11b92472d9dbf7d9e3e81640f93d6715c08.tar.bz2
add nfs-server, gssd, idmapd, rpcbind, statd
l---------etc/sv/gssd/log/run1
-rwxr-xr-xetc/sv/gssd/run4
l---------etc/sv/idmapd/log/run1
-rwxr-xr-xetc/sv/idmapd/run4
-rwxr-xr-xetc/sv/nfs-server/finish5
l---------etc/sv/nfs-server/log/run1
-rwxr-xr-xetc/sv/nfs-server/run36
l---------etc/sv/rpcbind/log/run1
-rwxr-xr-xetc/sv/rpcbind/run5
l---------etc/sv/statd/log/run1
-rwxr-xr-xetc/sv/statd/run8
11 files changed, 67 insertions, 0 deletions
diff --git a/etc/sv/gssd/log/run b/etc/sv/gssd/log/run
new file mode 120000
index 0000000..914853d
--- /dev/null
+++ b/etc/sv/gssd/log/run
@@ -0,0 +1 @@
+/usr/bin/rsvlog \ No newline at end of file
diff --git a/etc/sv/gssd/run b/etc/sv/gssd/run
new file mode 100755
index 0000000..22e4b67
--- /dev/null
+++ b/etc/sv/gssd/run
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+exec 2>&1
+exec /usr/sbin/rpc.gssd -f
diff --git a/etc/sv/idmapd/log/run b/etc/sv/idmapd/log/run
new file mode 120000
index 0000000..914853d
--- /dev/null
+++ b/etc/sv/idmapd/log/run
@@ -0,0 +1 @@
+/usr/bin/rsvlog \ No newline at end of file
diff --git a/etc/sv/idmapd/run b/etc/sv/idmapd/run
new file mode 100755
index 0000000..7a5a34a
--- /dev/null
+++ b/etc/sv/idmapd/run
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+exec 2>&1
+exec /usr/sbin/rpc.idmapd -v -f
diff --git a/etc/sv/nfs-server/finish b/etc/sv/nfs-server/finish
new file mode 100755
index 0000000..912101c
--- /dev/null
+++ b/etc/sv/nfs-server/finish
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec 2>&1
+# shut down the nfsd threads.
+/usr/sbin/rpc.nfsd -- 0
+/usr/sbin/exportfs -a -u
diff --git a/etc/sv/nfs-server/log/run b/etc/sv/nfs-server/log/run
new file mode 120000
index 0000000..914853d
--- /dev/null
+++ b/etc/sv/nfs-server/log/run
@@ -0,0 +1 @@
+/usr/bin/rsvlog \ No newline at end of file
diff --git a/etc/sv/nfs-server/run b/etc/sv/nfs-server/run
new file mode 100755
index 0000000..a52190b
--- /dev/null
+++ b/etc/sv/nfs-server/run
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+set -x
+
+#!/bin/bash
+exec 2>&1
+
+# Make sure the statd service is running.
+sv check statd
+
+# Get the nfs service parameters from the LFS standard file
+# this sets some envars.
+source /etc/conf.d/nfs-server.conf
+
+echo "Loading kernel modules"
+modprobe sunrpc
+modprobe nfs
+modprobe nfsd
+
+echo "Mounting pipefs filesystem"
+mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs defaults
+
+# Uncomment this and add the two daemons if you need kerberos support.
+# sv check idmapd gssd
+
+echo "Mounting NFS filesystem"
+mount -t nfsd nfsd /proc/fs/nfsd
+
+echo "Re-export all directories in /etc/exports"
+/usr/sbin/exportfs -ra > /dev/null
+
+echo "start some nfsd threads"
+/usr/sbin/rpc.nfsd -- $PROCESSES
+
+echo "Start the rpc.mountd daemon"
+exec /usr/sbin/rpc.mountd --foreground
diff --git a/etc/sv/rpcbind/log/run b/etc/sv/rpcbind/log/run
new file mode 120000
index 0000000..914853d
--- /dev/null
+++ b/etc/sv/rpcbind/log/run
@@ -0,0 +1 @@
+/usr/bin/rsvlog \ No newline at end of file
diff --git a/etc/sv/rpcbind/run b/etc/sv/rpcbind/run
new file mode 100755
index 0000000..cb19a14
--- /dev/null
+++ b/etc/sv/rpcbind/run
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+
+exec 2>&1
+# run in debug mode to prevent forking
+exec rpcbind -d
diff --git a/etc/sv/statd/log/run b/etc/sv/statd/log/run
new file mode 120000
index 0000000..914853d
--- /dev/null
+++ b/etc/sv/statd/log/run
@@ -0,0 +1 @@
+/usr/bin/rsvlog \ No newline at end of file
diff --git a/etc/sv/statd/run b/etc/sv/statd/run
new file mode 100755
index 0000000..5055104
--- /dev/null
+++ b/etc/sv/statd/run
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+exec 2>&1
+
+# Make sure the portmap service is running.
+sv check rpcbind
+
+exec rpc.statd -F -d