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/statd 124623 2004-01-17 11:06:41Z mtm $
| 4# $FreeBSD: head/etc/rc.d/statd 125987 2004-02-19 05:49:06Z mtm $
|
5# 6 7# PROVIDE: nfslocking 8# REQUIRE: nfsserver nfsclient nfsd 9# BEFORE: DAEMON 10# KEYWORD: FreeBSD 11 12. /etc/rc.subr 13
| 5# 6 7# PROVIDE: nfslocking 8# REQUIRE: nfsserver nfsclient nfsd 9# BEFORE: DAEMON 10# KEYWORD: FreeBSD 11 12. /etc/rc.subr 13
|
| 14# Save the (one) commandline argument incase it gets clobbered.
|
14arg=$1 15
| 15arg=$1 16
|
| 17# Either NFS client or server must be enabled or this must be a 'forcestart' 18# for either of the daemons to start. 19#
|
16start_precmd='checkyesno nfs_server_enable || checkyesno nfs_client_enable || 17 [ -n "$rc_force" ]' 18stop_precmd=$start_precmd 19status_precmd=$start_precmd 20
| 20start_precmd='checkyesno nfs_server_enable || checkyesno nfs_client_enable || 21 [ -n "$rc_force" ]' 22stop_precmd=$start_precmd 23status_precmd=$start_precmd 24
|
| 25# rpc.statd 26#
|
21name="statd" 22rcvar=rpc_statd_enable 23command="/usr/sbin/rpc.${name}" 24load_rc_config $name 25run_rc_command "$arg" 26
| 27name="statd" 28rcvar=rpc_statd_enable 29command="/usr/sbin/rpc.${name}" 30load_rc_config $name 31run_rc_command "$arg" 32
|
| 33# rpc.lockd 34#
|
27name="lockd" 28rcvar=rpc_lockd_enable 29command="/usr/sbin/rpc.${name}" 30load_rc_config $name 31run_rc_command "$arg"
| 35name="lockd" 36rcvar=rpc_lockd_enable 37command="/usr/sbin/rpc.${name}" 38load_rc_config $name 39run_rc_command "$arg"
|