NetBSD/etc/rc.d/nfslocking

38 lines
713 B
Plaintext
Raw Normal View History

2000-03-10 14:53:23 +03:00
#!/bin/sh
#
# $NetBSD: nfslocking,v 1.8 2004/10/12 14:51:03 lukem Exp $
2000-03-10 14:53:23 +03:00
#
# PROVIDE: nfslocking
# REQUIRE: nfsd
# BEFORE: DAEMON
2000-03-10 14:53:23 +03:00
$_rc_subr_loaded . /etc/rc.subr
2000-03-10 14:53:23 +03:00
arg=$1
nfslocking_precmd()
{
checkyesno nfs_server || checkyesno nfs_client || [ -n "$rc_force" ]
}
2000-03-10 14:53:23 +03:00
name="statd"
rcvar=$name
2000-03-10 14:53:23 +03:00
command="/usr/sbin/rpc.${name}"
start_precmd='nfslocking_precmd'
stop_precmd=$start_precmd
status_precmd=$start_precmd
load_rc_config $name
load_rc_config_var nfsd nfs_server
2000-03-10 14:53:23 +03:00
run_rc_command "$arg"
name="lockd"
rcvar=$name
2000-03-10 14:53:23 +03:00
command="/usr/sbin/rpc.${name}"
start_precmd='nfslocking_precmd'
stop_precmd=$start_precmd
status_precmd=$start_precmd
load_rc_config $name
load_rc_config_var nfsd nfs_server
2000-03-10 14:53:23 +03:00
run_rc_command "$arg"