2000-03-10 14:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2000-04-16 01:14:48 +04:00
|
|
|
# $NetBSD: nfslocking,v 1.2 2000/04/15 21:14:50 tsarna Exp $
|
2000-03-10 14:53:23 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: nfslocking
|
2000-04-16 01:14:48 +04:00
|
|
|
# REQUIRE: nfsd
|
2000-03-10 14:53:23 +03:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
. /etc/rc.conf
|
|
|
|
|
|
|
|
arg=$1
|
|
|
|
|
|
|
|
start_precmd='checkyesno nfs_server || checkyesno nfs_client'
|
|
|
|
stop_precmd=$start_precmd
|
|
|
|
status_precmd=$start_precmd
|
|
|
|
|
|
|
|
name="statd"
|
|
|
|
command="/usr/sbin/rpc.${name}"
|
|
|
|
run_rc_command "$arg"
|
|
|
|
|
|
|
|
name="lockd"
|
|
|
|
command="/usr/sbin/rpc.${name}"
|
|
|
|
run_rc_command "$arg"
|