summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2004-02-19 05:49:06 +0000
committermtm <mtm@FreeBSD.org>2004-02-19 05:49:06 +0000
commit7ae22c7183498247bd0c5d9bbf3902be44256bb0 (patch)
tree79228d01b8d35791fe8a14e8aec66d70ade4d70a
parentf84686bc1d61697ffca893d0d997c458505e6ce8 (diff)
downloadFreeBSD-src-7ae22c7183498247bd0c5d9bbf3902be44256bb0.zip
FreeBSD-src-7ae22c7183498247bd0c5d9bbf3902be44256bb0.tar.gz
In-line documentation.
Prodded by: alfred
-rw-r--r--etc/rc.d/lockd8
-rwxr-xr-xetc/rc.d/nfslocking8
-rw-r--r--etc/rc.d/statd8
3 files changed, 24 insertions, 0 deletions
diff --git a/etc/rc.d/lockd b/etc/rc.d/lockd
index b956d9f..94b239b 100644
--- a/etc/rc.d/lockd
+++ b/etc/rc.d/lockd
@@ -11,19 +11,27 @@
. /etc/rc.subr
+# Save the (one) commandline argument incase it gets clobbered.
arg=$1
+# Either NFS client or server must be enabled or this must be a 'forcestart'
+# for either of the daemons to start.
+#
start_precmd='checkyesno nfs_server_enable || checkyesno nfs_client_enable ||
[ -n "$rc_force" ]'
stop_precmd=$start_precmd
status_precmd=$start_precmd
+# rpc.statd
+#
name="statd"
rcvar=rpc_statd_enable
command="/usr/sbin/rpc.${name}"
load_rc_config $name
run_rc_command "$arg"
+# rpc.lockd
+#
name="lockd"
rcvar=rpc_lockd_enable
command="/usr/sbin/rpc.${name}"
diff --git a/etc/rc.d/nfslocking b/etc/rc.d/nfslocking
index b956d9f..94b239b 100755
--- a/etc/rc.d/nfslocking
+++ b/etc/rc.d/nfslocking
@@ -11,19 +11,27 @@
. /etc/rc.subr
+# Save the (one) commandline argument incase it gets clobbered.
arg=$1
+# Either NFS client or server must be enabled or this must be a 'forcestart'
+# for either of the daemons to start.
+#
start_precmd='checkyesno nfs_server_enable || checkyesno nfs_client_enable ||
[ -n "$rc_force" ]'
stop_precmd=$start_precmd
status_precmd=$start_precmd
+# rpc.statd
+#
name="statd"
rcvar=rpc_statd_enable
command="/usr/sbin/rpc.${name}"
load_rc_config $name
run_rc_command "$arg"
+# rpc.lockd
+#
name="lockd"
rcvar=rpc_lockd_enable
command="/usr/sbin/rpc.${name}"
diff --git a/etc/rc.d/statd b/etc/rc.d/statd
index b956d9f..94b239b 100644
--- a/etc/rc.d/statd
+++ b/etc/rc.d/statd
@@ -11,19 +11,27 @@
. /etc/rc.subr
+# Save the (one) commandline argument incase it gets clobbered.
arg=$1
+# Either NFS client or server must be enabled or this must be a 'forcestart'
+# for either of the daemons to start.
+#
start_precmd='checkyesno nfs_server_enable || checkyesno nfs_client_enable ||
[ -n "$rc_force" ]'
stop_precmd=$start_precmd
status_precmd=$start_precmd
+# rpc.statd
+#
name="statd"
rcvar=rpc_statd_enable
command="/usr/sbin/rpc.${name}"
load_rc_config $name
run_rc_command "$arg"
+# rpc.lockd
+#
name="lockd"
rcvar=rpc_lockd_enable
command="/usr/sbin/rpc.${name}"
OpenPOWER on IntegriCloud