Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/lockd
| Show All 10 Lines | |||||
| . /etc/rc.subr | . /etc/rc.subr | ||||
| name="lockd" | name="lockd" | ||||
| desc="NFS file locking daemon" | desc="NFS file locking daemon" | ||||
| rcvar=rpc_lockd_enable | rcvar=rpc_lockd_enable | ||||
| command="/usr/sbin/rpc.${name}" | command="/usr/sbin/rpc.${name}" | ||||
| start_precmd='lockd_precmd' | start_precmd='lockd_precmd' | ||||
| : ${lockd_svcj_options:="net_basic"} | |||||
| # Make sure that we are either an NFS client or server, and that we get | # Make sure that we are either an NFS client or server, and that we get | ||||
| # the correct flags from rc.conf(5). | # the correct flags from rc.conf(5). | ||||
| # | # | ||||
| lockd_precmd() | lockd_precmd() | ||||
| { | { | ||||
| force_depend rpcbind || return 1 | force_depend rpcbind || return 1 | ||||
| force_depend statd rpc_statd || return 1 | force_depend statd rpc_statd || return 1 | ||||
| rc_flags=${rpc_lockd_flags} | |||||
| } | } | ||||
| load_rc_config $name | load_rc_config $name | ||||
| rc_flags=${rpc_lockd_flags} | |||||
| run_rc_command $1 | run_rc_command $1 | ||||