lockd (169653) | lockd (171871) |
---|---|
1#!/bin/sh 2# 3# $NetBSD: nfslocking,v 1.6 2002/03/24 15:52:41 lukem Exp $ | 1#!/bin/sh 2# 3# $NetBSD: nfslocking,v 1.6 2002/03/24 15:52:41 lukem Exp $ |
4# $FreeBSD: head/etc/rc.d/lockd 169653 2007-05-17 08:57:14Z mtm $ | 4# $FreeBSD: head/etc/rc.d/lockd 171871 2007-08-17 07:58:26Z mtm $ |
5# 6 7# PROVIDE: nfslocking 8# REQUIRE: nfsserver nfsclient nfsd rpcbind 9# BEFORE: DAEMON 10# KEYWORD: nojail 11 12. /etc/rc.subr --- 12 unchanged lines hidden (view full) --- 25 then 26 ret=1 27 fi 28 if ! checkyesno rpcbind_enable && \ 29 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 30 then 31 force_depend rpcbind || ret=1 32 fi | 5# 6 7# PROVIDE: nfslocking 8# REQUIRE: nfsserver nfsclient nfsd rpcbind 9# BEFORE: DAEMON 10# KEYWORD: nojail 11 12. /etc/rc.subr --- 12 unchanged lines hidden (view full) --- 25 then 26 ret=1 27 fi 28 if ! checkyesno rpcbind_enable && \ 29 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 30 then 31 force_depend rpcbind || ret=1 32 fi |
33 34 if [ $name = "statd" ] 35 then 36 rc_flags=${rpc_statd_flags} 37 elif [ $name = "lockd" ] 38 then 39 rc_flags=${rpc_lockd_flags} 40 fi 41 | 33 rc_flags=${rpc_lockd_flags} |
42 return ${ret} 43} 44 | 34 return ${ret} 35} 36 |
45start_precmd="nfslocking_precmd" 46stop_precmd='checkyesno nfs_server_enable || checkyesno nfs_client_enable' 47status_precmd=$stop_precmd 48 49# rpc.statd 50# 51name="statd" 52rcvar=rpc_statd_enable 53command="/usr/sbin/rpc.${name}" | |
54load_rc_config $name | 37load_rc_config $name |
55run_rc_command "$arg" 56 57# rpc.lockd 58# 59name="lockd" 60rcvar=rpc_lockd_enable 61command="/usr/sbin/rpc.${name}" 62load_rc_config $name 63run_rc_command "$arg" | 38run_rc_command $1 |