Sync usage with man page.
[netbsd-mini2440.git] / etc / rc.d / nfslocking
blob38db6853dea0707df8deedb5548b3173887c4929
1 #!/bin/sh
3 # $NetBSD: nfslocking,v 1.7 2004/08/13 18:08:03 mycroft Exp $
6 # PROVIDE: nfslocking
7 # REQUIRE: nfsd
8 # BEFORE: DAEMON
10 $_rc_subr_loaded . /etc/rc.subr
12 arg=$1
14 nfslocking_precmd()
16 checkyesno nfs_server || checkyesno nfs_client || [ -n "$rc_force" ]
19 name="statd"
20 rcvar=$name
21 command="/usr/sbin/rpc.${name}"
22 start_precmd='nfslocking_precmd'
23 stop_precmd=$start_precmd
24 status_precmd=$start_precmd
25 load_rc_config $name
26 load_rc_config_var nfsd nfs_server
27 run_rc_command "$arg"
29 name="lockd"
30 rcvar=$name
31 command="/usr/sbin/rpc.${name}"
32 start_precmd='nfslocking_precmd'
33 stop_precmd=$start_precmd
34 status_precmd=$start_precmd
35 load_rc_config $name
36 load_rc_config_var nfsd nfs_server
37 run_rc_command "$arg"