]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.d/lockd
This commit was generated by cvs2svn to compensate for changes in r165538,
[FreeBSD/FreeBSD.git] / etc / rc.d / lockd
1 #!/bin/sh
2 #
3 # $NetBSD: nfslocking,v 1.6 2002/03/24 15:52:41 lukem Exp $
4 # $FreeBSD$
5 #
6
7 # PROVIDE: nfslocking
8 # REQUIRE: nfsserver nfsclient nfsd
9 # BEFORE:  DAEMON
10 # KEYWORD: nojail
11
12 . /etc/rc.subr
13
14 # Save the (one) commandline argument in case it gets clobbered.
15 arg=$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 #
20 start_precmd='checkyesno nfs_server_enable || checkyesno nfs_client_enable ||
21     [ -n "$rc_force" ]'
22 stop_precmd=$start_precmd
23 status_precmd=$start_precmd
24
25 # rpc.statd
26 #
27 name="statd"
28 rcvar=rpc_statd_enable
29 command="/usr/sbin/rpc.${name}"
30 load_rc_config $name
31 run_rc_command "$arg"
32
33 # rpc.lockd
34 #
35 name="lockd"
36 rcvar=rpc_lockd_enable
37 command="/usr/sbin/rpc.${name}"
38 load_rc_config $name
39 run_rc_command "$arg"