2001-06-16 07:16:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2007-08-18 04:08:53 +00:00
|
|
|
# FreeBSD History: src/etc/rc.d/nfslocking,v 1.11 2004/10/07 13:55:26 mtm
|
2002-06-13 22:14:37 +00:00
|
|
|
# $FreeBSD$
|
2001-06-16 07:16:14 +00:00
|
|
|
#
|
|
|
|
|
2007-08-18 04:08:53 +00:00
|
|
|
# PROVIDE: lockd
|
2011-07-08 00:49:50 +00:00
|
|
|
# REQUIRE: nfsclient nfsd rpcbind statd
|
2002-06-13 22:14:37 +00:00
|
|
|
# BEFORE: DAEMON
|
2008-07-16 19:50:29 +00:00
|
|
|
# KEYWORD: nojail shutdown
|
2001-06-16 07:16:14 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
2007-08-18 04:08:53 +00:00
|
|
|
name="lockd"
|
|
|
|
rcvar=rpc_lockd_enable
|
|
|
|
command="/usr/sbin/rpc.${name}"
|
|
|
|
start_precmd='lockd_precmd'
|
2001-06-16 07:16:14 +00:00
|
|
|
|
2007-08-18 04:08:53 +00:00
|
|
|
# Make sure that we are either an NFS client or server, and that we get
|
|
|
|
# the correct flags from rc.conf(5).
|
2004-02-19 05:49:06 +00:00
|
|
|
#
|
2007-08-18 04:08:53 +00:00
|
|
|
lockd_precmd()
|
2007-03-30 19:08:58 +00:00
|
|
|
{
|
2012-02-14 10:51:24 +00:00
|
|
|
force_depend rpcbind || return 1
|
|
|
|
force_depend statd rpc_statd || return 1
|
|
|
|
|
2007-08-17 07:58:26 +00:00
|
|
|
rc_flags=${rpc_lockd_flags}
|
2007-03-30 19:08:58 +00:00
|
|
|
}
|
|
|
|
|
2001-06-16 07:16:14 +00:00
|
|
|
load_rc_config $name
|
2007-08-17 07:58:26 +00:00
|
|
|
run_rc_command $1
|