Sync usage with man page.
[netbsd-mini2440.git] / etc / rc.d / ypbind
bloba5d7cc3a85916e6c0b3ef562520fc2ade4410d43
1 #!/bin/sh
3 # $NetBSD: ypbind,v 1.7 2004/10/11 14:11:43 lukem Exp $
6 # PROVIDE: ypbind
7 # REQUIRE: rpcbind ypserv
8 # BEFORE: DAEMON
10 $_rc_subr_loaded . /etc/rc.subr
12 name="ypbind"
13 rcvar=$name
14 command="/usr/sbin/${name}"
15 start_precmd="ypbind_precmd"
17 ypbind_precmd()
19 _domain=$(domainname)
20 if [ -z "$_domain" ]; then
21 warn "domainname(1) is not set."
22 return 1
26 load_rc_config $name
27 run_rc_command "$1"