Sync usage with man page.
[netbsd-mini2440.git] / etc / rc.d / ypserv
blob130d04a232dbfcf6593d590c59a699b73bd02e60
1 #!/bin/sh
3 # $NetBSD: ypserv,v 1.8 2004/10/12 14:51:03 lukem Exp $
6 # PROVIDE: ypserv
7 # REQUIRE: rpcbind
9 $_rc_subr_loaded . /etc/rc.subr
11 name="ypserv"
12 rcvar=$name
13 command="/usr/sbin/${name}"
14 required_vars="rpcbind"
15 start_precmd="ypserv_precmd"
17 ypserv_precmd()
19 if [ ! -d /var/yp/. ]; then
20 warn "/var/yp is not a directory."
21 return 1
25 load_rc_config $name
26 load_rc_config_var rpcbind rpcbind
27 run_rc_command "$1"