2000-03-10 14:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2004-10-12 18:51:03 +04:00
|
|
|
# $NetBSD: nfslocking,v 1.8 2004/10/12 14:51:03 lukem Exp $
|
2000-03-10 14:53:23 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: nfslocking
|
2000-04-16 01:14:48 +04:00
|
|
|
# REQUIRE: nfsd
|
2002-03-22 07:33:57 +03:00
|
|
|
# BEFORE: DAEMON
|
2000-03-10 14:53:23 +03:00
|
|
|
|
2004-08-13 22:08:03 +04:00
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
2000-03-10 14:53:23 +03:00
|
|
|
|
|
|
|
arg=$1
|
|
|
|
|
2004-10-12 18:51:03 +04:00
|
|
|
nfslocking_precmd()
|
|
|
|
{
|
|
|
|
checkyesno nfs_server || checkyesno nfs_client || [ -n "$rc_force" ]
|
|
|
|
}
|
2000-03-10 14:53:23 +03:00
|
|
|
|
|
|
|
name="statd"
|
2000-09-19 17:04:38 +04:00
|
|
|
rcvar=$name
|
2000-03-10 14:53:23 +03:00
|
|
|
command="/usr/sbin/rpc.${name}"
|
2004-10-12 18:51:03 +04:00
|
|
|
start_precmd='nfslocking_precmd'
|
|
|
|
stop_precmd=$start_precmd
|
|
|
|
status_precmd=$start_precmd
|
2000-05-13 12:45:06 +04:00
|
|
|
load_rc_config $name
|
2004-10-12 18:51:03 +04:00
|
|
|
load_rc_config_var nfsd nfs_server
|
2000-03-10 14:53:23 +03:00
|
|
|
run_rc_command "$arg"
|
|
|
|
|
|
|
|
name="lockd"
|
2000-09-19 17:04:38 +04:00
|
|
|
rcvar=$name
|
2000-03-10 14:53:23 +03:00
|
|
|
command="/usr/sbin/rpc.${name}"
|
2004-10-12 18:51:03 +04:00
|
|
|
start_precmd='nfslocking_precmd'
|
|
|
|
stop_precmd=$start_precmd
|
|
|
|
status_precmd=$start_precmd
|
2000-05-13 12:45:06 +04:00
|
|
|
load_rc_config $name
|
2004-10-12 18:51:03 +04:00
|
|
|
load_rc_config_var nfsd nfs_server
|
2000-03-10 14:53:23 +03:00
|
|
|
run_rc_command "$arg"
|