summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorceri <ceri@FreeBSD.org>2006-10-15 14:19:06 +0000
committerceri <ceri@FreeBSD.org>2006-10-15 14:19:06 +0000
commit7b28cc9b2faecf0b23e4e115f9cd784767065ea8 (patch)
tree39381780188e0f390ad5ddb5354a0b0e48e85bc3 /etc
parent5bf103408942b7bfc450a664950e3d816ae5e7da (diff)
downloadFreeBSD-src-7b28cc9b2faecf0b23e4e115f9cd784767065ea8.zip
FreeBSD-src-7b28cc9b2faecf0b23e4e115f9cd784767065ea8.tar.gz
RC script for idmapd(8), defaulting to off.
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf1
-rwxr-xr-xetc/rc.d/Makefile2
-rw-r--r--etc/rc.d/idmapd18
3 files changed, 20 insertions, 1 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 4756e6b..903c66b 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -242,6 +242,7 @@ nfs_client_enable="NO" # This host is an NFS client (or NO).
nfs_access_cache="60" # Client cache timeout in seconds
nfs_server_enable="NO" # This host is an NFS server (or NO).
nfs_server_flags="-u -t -n 4" # Flags to nfsd (if enabled).
+idmapd_enable="NO" # Run the NFS4 id mapper (YES/NO).
mountd_enable="NO" # Run mountd (or NO).
mountd_flags="-r" # Flags to mountd (if NFS server enabled).
weak_mountd_authentication="NO" # Allow non-root mount requests to be served.
diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile
index 779844c..5808d9c 100755
--- a/etc/rc.d/Makefile
+++ b/etc/rc.d/Makefile
@@ -15,7 +15,7 @@ FILES= DAEMON LOGIN NETWORKING SERVERS \
gbde geli geli2 \
hcsecd \
hostapd hostname \
- inetd initrandom \
+ idmapd inetd initrandom \
ip6addrctl ip6fw ipfilter ipfs ipfw ipmon \
ipnat ipsec ipxrouted isdnd \
jail \
diff --git a/etc/rc.d/idmapd b/etc/rc.d/idmapd
new file mode 100644
index 0000000..c5e3886
--- /dev/null
+++ b/etc/rc.d/idmapd
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: idmapd
+# REQUIRE: rpcbind
+# KEYWORD: nojail
+
+. /etc/rc.subr
+
+name="idmapd"
+
+load_rc_config $name
+rcvar="idmapd_enable"
+command="${idmapd:-/sbin/${name}}"
+eval ${name}_flags=\"${idmapd_flags}\"
+run_rc_command "$1"
OpenPOWER on IntegriCloud