head	1.10;
access;
symbols
	netbsd-9-5-RELEASE:1.10
	netbsd-11-0-RELEASE:1.10
	netbsd-11-0-RC7:1.10
	netbsd-11-0-RC6:1.10
	netbsd-11-0-RC5:1.10
	netbsd-11-0-RC4:1.10
	netbsd-11-0-RC3:1.10
	netbsd-11-0-RC2:1.10
	netbsd-11-0-RC1:1.10
	perseant-exfatfs-base-20250801:1.10
	netbsd-11:1.10.0.108
	netbsd-11-base:1.10
	netbsd-10-1-RELEASE:1.10
	perseant-exfatfs-base-20240630:1.10
	perseant-exfatfs:1.10.0.106
	perseant-exfatfs-base:1.10
	netbsd-8-3-RELEASE:1.10
	netbsd-9-4-RELEASE:1.10
	netbsd-10-0-RELEASE:1.10
	netbsd-10-0-RC6:1.10
	netbsd-10-0-RC5:1.10
	netbsd-10-0-RC4:1.10
	netbsd-10-0-RC3:1.10
	netbsd-10-0-RC2:1.10
	netbsd-10-0-RC1:1.10
	netbsd-10:1.10.0.104
	netbsd-10-base:1.10
	netbsd-9-3-RELEASE:1.10
	cjep_sun2x-base1:1.10
	cjep_sun2x:1.10.0.102
	cjep_sun2x-base:1.10
	cjep_staticlib_x-base1:1.10
	netbsd-9-2-RELEASE:1.10
	cjep_staticlib_x:1.10.0.100
	cjep_staticlib_x-base:1.10
	netbsd-9-1-RELEASE:1.10
	phil-wifi-20200421:1.10
	phil-wifi-20200411:1.10
	is-mlppp:1.10.0.98
	is-mlppp-base:1.10
	phil-wifi-20200406:1.10
	netbsd-8-2-RELEASE:1.10
	netbsd-9-0-RELEASE:1.10
	netbsd-9-0-RC2:1.10
	netbsd-9-0-RC1:1.10
	phil-wifi-20191119:1.10
	netbsd-9:1.10.0.96
	netbsd-9-base:1.10
	phil-wifi-20190609:1.10
	netbsd-8-1-RELEASE:1.10
	netbsd-8-1-RC1:1.10
	pgoyette-compat-merge-20190127:1.10
	pgoyette-compat-20190127:1.10
	pgoyette-compat-20190118:1.10
	pgoyette-compat-1226:1.10
	pgoyette-compat-1126:1.10
	pgoyette-compat-1020:1.10
	pgoyette-compat-0930:1.10
	pgoyette-compat-0906:1.10
	netbsd-7-2-RELEASE:1.10
	pgoyette-compat-0728:1.10
	netbsd-8-0-RELEASE:1.10
	phil-wifi:1.10.0.94
	phil-wifi-base:1.10
	pgoyette-compat-0625:1.10
	netbsd-8-0-RC2:1.10
	pgoyette-compat-0521:1.10
	pgoyette-compat-0502:1.10
	pgoyette-compat-0422:1.10
	netbsd-8-0-RC1:1.10
	pgoyette-compat-0415:1.10
	pgoyette-compat-0407:1.10
	pgoyette-compat-0330:1.10
	pgoyette-compat-0322:1.10
	pgoyette-compat-0315:1.10
	netbsd-7-1-2-RELEASE:1.10
	pgoyette-compat:1.10.0.92
	pgoyette-compat-base:1.10
	netbsd-7-1-1-RELEASE:1.10
	matt-nb8-mediatek:1.10.0.90
	matt-nb8-mediatek-base:1.10
	perseant-stdc-iso10646:1.10.0.88
	perseant-stdc-iso10646-base:1.10
	netbsd-8:1.10.0.86
	netbsd-8-base:1.10
	prg-localcount2-base3:1.10
	prg-localcount2-base2:1.10
	prg-localcount2-base1:1.10
	prg-localcount2:1.10.0.84
	prg-localcount2-base:1.10
	pgoyette-localcount-20170426:1.10
	bouyer-socketcan-base1:1.10
	pgoyette-localcount-20170320:1.10
	netbsd-7-1:1.10.0.82
	netbsd-7-1-RELEASE:1.10
	netbsd-7-1-RC2:1.10
	netbsd-7-nhusb-base-20170116:1.10
	bouyer-socketcan:1.10.0.80
	bouyer-socketcan-base:1.10
	pgoyette-localcount-20170107:1.10
	netbsd-7-1-RC1:1.10
	pgoyette-localcount-20161104:1.10
	netbsd-7-0-2-RELEASE:1.10
	localcount-20160914:1.10
	netbsd-7-nhusb:1.10.0.78
	netbsd-7-nhusb-base:1.10
	pgoyette-localcount-20160806:1.10
	pgoyette-localcount-20160726:1.10
	pgoyette-localcount:1.10.0.76
	pgoyette-localcount-base:1.10
	netbsd-7-0-1-RELEASE:1.10
	netbsd-7-0:1.10.0.74
	netbsd-7-0-RELEASE:1.10
	netbsd-7-0-RC3:1.10
	netbsd-7-0-RC2:1.10
	netbsd-7-0-RC1:1.10
	netbsd-5-2-3-RELEASE:1.10
	netbsd-5-1-5-RELEASE:1.10
	netbsd-6-0-6-RELEASE:1.10
	netbsd-6-1-5-RELEASE:1.10
	netbsd-7:1.10.0.72
	netbsd-7-base:1.10
	yamt-pagecache-base9:1.10
	yamt-pagecache-tag8:1.10
	netbsd-6-1-4-RELEASE:1.10
	netbsd-6-0-5-RELEASE:1.10
	tls-earlyentropy:1.10.0.70
	tls-earlyentropy-base:1.10
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.10
	riastradh-drm2-base3:1.10
	netbsd-6-1-3-RELEASE:1.10
	netbsd-6-0-4-RELEASE:1.10
	netbsd-5-2-2-RELEASE:1.10
	netbsd-5-1-4-RELEASE:1.10
	netbsd-6-1-2-RELEASE:1.10
	netbsd-6-0-3-RELEASE:1.10
	netbsd-5-2-1-RELEASE:1.10
	netbsd-5-1-3-RELEASE:1.10
	netbsd-6-1-1-RELEASE:1.10
	riastradh-drm2-base2:1.10
	riastradh-drm2-base1:1.10
	riastradh-drm2:1.10.0.62
	riastradh-drm2-base:1.10
	netbsd-6-1:1.10.0.68
	netbsd-6-0-2-RELEASE:1.10
	netbsd-6-1-RELEASE:1.10
	khorben-n900:1.10.0.66
	netbsd-6-1-RC4:1.10
	netbsd-6-1-RC3:1.10
	agc-symver:1.10.0.64
	agc-symver-base:1.10
	netbsd-6-1-RC2:1.10
	netbsd-6-1-RC1:1.10
	yamt-pagecache-base8:1.10
	netbsd-5-2:1.10.0.60
	netbsd-6-0-1-RELEASE:1.10
	yamt-pagecache-base7:1.10
	netbsd-5-2-RELEASE:1.10
	netbsd-5-2-RC1:1.10
	matt-nb6-plus-nbase:1.10
	yamt-pagecache-base6:1.10
	netbsd-6-0:1.10.0.58
	netbsd-6-0-RELEASE:1.10
	netbsd-6-0-RC2:1.10
	tls-maxphys:1.10.0.56
	tls-maxphys-base:1.10
	matt-nb6-plus:1.10.0.54
	matt-nb6-plus-base:1.10
	netbsd-6-0-RC1:1.10
	yamt-pagecache-base5:1.10
	yamt-pagecache-base4:1.10
	netbsd-6:1.10.0.52
	netbsd-6-base:1.10
	netbsd-5-1-2-RELEASE:1.10
	netbsd-5-1-1-RELEASE:1.10
	yamt-pagecache-base3:1.10
	yamt-pagecache-base2:1.10
	yamt-pagecache:1.10.0.50
	yamt-pagecache-base:1.10
	cherry-xenmp:1.10.0.48
	cherry-xenmp-base:1.10
	bouyer-quota2-nbase:1.10
	bouyer-quota2:1.10.0.46
	bouyer-quota2-base:1.10
	matt-mips64-premerge-20101231:1.10
	matt-nb5-mips64-premerge-20101231:1.10
	matt-nb5-pq3:1.10.0.44
	matt-nb5-pq3-base:1.10
	netbsd-5-1:1.10.0.42
	netbsd-5-1-RELEASE:1.10
	netbsd-5-1-RC4:1.10
	matt-nb5-mips64-k15:1.10
	netbsd-5-1-RC3:1.10
	netbsd-5-1-RC2:1.10
	netbsd-5-1-RC1:1.10
	netbsd-5-0-2-RELEASE:1.10
	matt-nb5-mips64-premerge-20091211:1.10
	matt-premerge-20091211:1.10
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.10
	matt-nb4-mips64-k7-u2a-k9b:1.10
	matt-nb5-mips64-u1-k1-k5:1.10
	matt-nb5-mips64:1.10.0.40
	netbsd-5-0-1-RELEASE:1.10
	jym-xensuspend-nbase:1.10
	netbsd-5-0:1.10.0.38
	netbsd-5-0-RELEASE:1.10
	netbsd-5-0-RC4:1.10
	netbsd-5-0-RC3:1.10
	netbsd-5-0-RC2:1.10
	jym-xensuspend:1.10.0.36
	jym-xensuspend-base:1.10
	netbsd-5-0-RC1:1.10
	mjf-devfs2-base2:1.10
	netbsd-5:1.10.0.34
	netbsd-5-base:1.10
	matt-mips64-base2:1.10
	matt-mips64:1.10.0.32
	netbsd-4-0-1-RELEASE:1.10
	wrstuden-revivesa-base-3:1.10
	wrstuden-revivesa-base-2:1.10
	wrstuden-fixsa-newbase:1.10
	wrstuden-revivesa-base-1:1.10
	yamt-pf42-base4:1.10
	yamt-pf42-base3:1.10
	hpcarm-cleanup-nbase:1.10
	yamt-pf42-baseX:1.10
	yamt-pf42-base2:1.10
	wrstuden-revivesa:1.10.0.30
	wrstuden-revivesa-base:1.10
	yamt-pf42:1.10.0.28
	yamt-pf42-base:1.10
	mjf-devfs2:1.10.0.26
	mjf-devfs2-base:1.10
	keiichi-mipv6:1.10.0.24
	keiichi-mipv6-base:1.10
	mjf-devfs:1.10.0.22
	mjf-devfs-base:1.10
	matt-armv6-nbase:1.10
	matt-armv6-prevmlocking:1.10
	wrstuden-fixsa-base-1:1.10
	netbsd-4-0:1.10.0.20
	netbsd-4-0-RELEASE:1.10
	cube-autoconf:1.10.0.18
	cube-autoconf-base:1.10
	netbsd-4-0-RC5:1.10
	netbsd-4-0-RC4:1.10
	netbsd-4-0-RC3:1.10
	netbsd-4-0-RC2:1.10
	netbsd-4-0-RC1:1.10
	matt-armv6:1.10.0.16
	matt-armv6-base:1.10
	matt-mips64-base:1.10
	hpcarm-cleanup:1.10.0.14
	hpcarm-cleanup-base:1.10
	netbsd-3-1-1-RELEASE:1.10
	netbsd-3-0-3-RELEASE:1.10
	wrstuden-fixsa:1.10.0.12
	wrstuden-fixsa-base:1.10
	abandoned-netbsd-4-base:1.10
	abandoned-netbsd-4:1.10.0.6
	netbsd-3-1:1.10.0.8
	netbsd-3-1-RELEASE:1.10
	netbsd-3-0-2-RELEASE:1.10
	netbsd-3-1-RC4:1.10
	netbsd-3-1-RC3:1.10
	netbsd-3-1-RC2:1.10
	netbsd-3-1-RC1:1.10
	netbsd-4:1.10.0.10
	netbsd-4-base:1.10
	netbsd-3-0-1-RELEASE:1.10
	netbsd-3-0:1.10.0.4
	netbsd-3-0-RELEASE:1.10
	netbsd-3-0-RC6:1.10
	netbsd-3-0-RC5:1.10
	netbsd-3-0-RC4:1.10
	netbsd-3-0-RC3:1.10
	netbsd-3-0-RC2:1.10
	netbsd-3-0-RC1:1.10
	netbsd-2-0-3-RELEASE:1.6
	netbsd-2-1:1.6.6.1.0.2
	netbsd-2-1-RELEASE:1.6.6.1
	netbsd-2-1-RC6:1.6.6.1
	netbsd-2-1-RC5:1.6.6.1
	netbsd-2-1-RC4:1.6.6.1
	netbsd-2-1-RC3:1.6.6.1
	netbsd-2-1-RC2:1.6.6.1
	netbsd-2-1-RC1:1.6.6.1
	netbsd-2-0-2-RELEASE:1.6
	netbsd-3:1.10.0.2
	netbsd-3-base:1.10
	netbsd-2-0-1-RELEASE:1.6
	netbsd-2:1.6.0.6
	netbsd-2-base:1.6
	netbsd-2-0-RELEASE:1.6
	netbsd-2-0-RC5:1.6
	netbsd-2-0-RC4:1.6
	netbsd-2-0-RC3:1.6
	netbsd-2-0-RC2:1.6
	netbsd-2-0-RC1:1.6
	netbsd-2-0:1.6.0.4
	netbsd-2-0-base:1.6
	netbsd-1-6-PATCH002-RELEASE:1.6
	netbsd-1-6-PATCH002:1.6
	netbsd-1-6-PATCH002-RC4:1.6
	netbsd-1-6-PATCH002-RC3:1.6
	netbsd-1-6-PATCH002-RC2:1.6
	netbsd-1-6-PATCH002-RC1:1.6
	netbsd-1-6-PATCH001:1.6
	netbsd-1-6-PATCH001-RELEASE:1.6
	netbsd-1-6-PATCH001-RC3:1.6
	netbsd-1-6-PATCH001-RC2:1.6
	netbsd-1-6-PATCH001-RC1:1.6
	fvdl_fs64_base:1.6
	netbsd-1-6-RELEASE:1.6
	netbsd-1-6-RC3:1.6
	netbsd-1-6-RC2:1.6
	netbsd-1-6-RC1:1.6
	netbsd-1-6:1.6.0.2
	netbsd-1-6-base:1.6
	netbsd-1-5-PATCH003:1.4.2.1
	netbsd-1-5-PATCH002:1.4.2.1
	netbsd-1-5-PATCH001:1.4.2.1
	netbsd-1-5-RELEASE:1.4.2.1
	netbsd-1-5-BETA2:1.4.2.1
	netbsd-1-5-BETA:1.4.2.1
	netbsd-1-5-ALPHA2:1.4
	netbsd-1-5:1.4.0.2
	netbsd-1-5-base:1.4
	minoura-xpg4dl:1.3.0.2
	minoura-xpg4dl-base:1.3
	rc-d-2000-03-10:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.10
date	2004.10.12.14.51.03;	author lukem;	state Exp;
branches;
next	1.9;

1.9
date	2004.10.11.15.00.51;	author christos;	state Exp;
branches;
next	1.8;

1.8
date	2004.10.11.14.11.43;	author lukem;	state Exp;
branches;
next	1.7;

1.7
date	2004.08.13.18.08.03;	author mycroft;	state Exp;
branches;
next	1.6;

1.6
date	2002.03.22.04.34.01;	author thorpej;	state Exp;
branches
	1.6.6.1;
next	1.5;

1.5
date	2000.09.19.13.04.39;	author lukem;	state Exp;
branches;
next	1.4;

1.4
date	2000.06.02.22.54.13;	author fvdl;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2000.05.13.08.45.10;	author lukem;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2000.03.16.22.22.15;	author lukem;	state Exp;
branches;
next	1.1;

1.1
date	2000.03.10.11.53.23;	author lukem;	state Exp;
branches
	1.1.1.1;
next	;

1.6.6.1
date	2005.05.09.22.42.07;	author riz;	state Exp;
branches;
next	;

1.4.2.1
date	2000.10.02.01.09.27;	author lukem;	state Exp;
branches;
next	;

1.3.2.1
date	2000.06.23.15.46.03;	author minoura;	state Exp;
branches;
next	;

1.1.1.1
date	2000.03.10.11.53.23;	author lukem;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Use 'load_rc_config_var CMD VAR' to set VAR for "foreign" rc.conf(5)
variables that may be set in /etc/rc.conf.d/CMD instead of /etc/rc.conf.
Fixes PR 20768 from Pavel Cahyna.
@
text
@#!/bin/sh
#
# $NetBSD: yppasswdd,v 1.9 2004/10/11 15:00:51 christos Exp $
#

# PROVIDE: yppasswdd
# REQUIRE: rpcbind ypserv ypbind
# BEFORE:  LOGIN

$_rc_subr_loaded . /etc/rc.subr

name="yppasswdd"
rcvar=$name
command="/usr/sbin/rpc.${name}"
required_vars="rpcbind ypserv"
start_precmd="yppasswdd_precmd"

yppasswdd_precmd()
{
	_domain=$(domainname)
	if [ -z "$_domain" ]; then
		warn "domainname(1) is not set."
		return 1
	fi
}

load_rc_config $name
load_rc_config_var rpcbind rpcbind
load_rc_config_var ypserv ypserv
run_rc_command "$1"
@


1.9
log
@Use new style command substitution.
@
text
@d3 1
a3 1
# $NetBSD: yppasswdd,v 1.8 2004/10/11 14:11:43 lukem Exp $
d28 2
@


1.8
log
@Explicitly  REQUIRE: rpcbind  since these services directly use RPC...
@
text
@d3 1
a3 1
# $NetBSD: yppasswdd,v 1.7 2004/08/13 18:08:03 mycroft Exp $
d20 1
a20 1
	_domain=`domainname`
@


1.7
log
@Add an _rc_subr_loaded variable, set to ":" by rc.subr.  Scripts can use this
for a speedup by doing:
$_rc_subr_loaded . /etc/rc.subr
@
text
@d3 1
a3 1
# $NetBSD: yppasswdd,v 1.6 2002/03/22 04:34:01 thorpej Exp $
d7 1
a7 1
# REQUIRE: ypserv ypbind
@


1.6
log
@Correct the "direction" of the barrier dependencies (DAEMON, LOGIN,
NETWORKING, and SERVERS) by specifying that certain things should
come BEFORE a given barrier, rather than having the barrier REQUIRE
a service.  This allows scripts to be removed without having to
edit the barrier dependencies.

As discussed on tech-userlevel, and approved by Luke.
@
text
@d3 1
a3 1
# $NetBSD: yppasswdd,v 1.5 2000/09/19 13:04:39 lukem Exp $
d10 1
a10 1
. /etc/rc.subr
@


1.6.6.1
log
@Pull up revision 1.10 (requested by lukem in ticket #1269):
Use 'load_rc_config_var CMD VAR' to set VAR for "foreign" rc.conf(5)
variables that may be set in /etc/rc.conf.d/CMD instead of /etc/rc.conf.
Fixes PR 20786 from Pavel Cahyna.
@
text
@d3 1
a3 1
# $NetBSD: yppasswdd,v 1.6 2002/03/22 04:34:01 thorpej Exp $
a27 2
load_rc_config_var rpcbind rpcbind
load_rc_config_var ypserv ypserv
@


1.5
log
@- only perform the checkyesno on the variable named in $rcvar (rather than
  implicitly using $name if $rcvar isn't set), and always perform this check,
  even when using start_cmd (et al).
  this check is performed before the pidcmd
  is run, speeding up scripts that weren't going to be run anyway.
  this should speed up booting slow systems.

- take advantage of the above and remove
	start_precmd="checkyesno foo"
  in scripts that use start_cmd.

- explicitly set rcvar=foo in the rc.d/foo scripts which have an equivalent
  rc.conf entry

- fix `rcvar' and `restart' when $rcvar isn't set.
  these above changes fix PR [bin/11027].

- when doing `force*', ignore the return value of *_precmd.
  this fixes PR [bin/10781].

- rename what sysdb provides from `databases' to `sysdb', to reflect
  the name of the script.

- improve the comments in rc.subr
@
text
@d3 1
a3 1
# $NetBSD: yppasswdd,v 1.4 2000/06/02 22:54:13 fvdl Exp $
d8 1
@


1.4
log
@* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.
@
text
@d3 1
a3 1
# $NetBSD: yppasswdd,v 1.3 2000/05/13 08:45:10 lukem Exp $
d12 1
d21 1
a21 1
		warn "domainname(1) is not set; ${name} not started"
@


1.4.2.1
log
@pull up rev 1.5 (approved by thorpej):
	- always use $rcvar to determine the name of the var to checkyesno
	- fix force*
@
text
@d3 1
a3 1
# $NetBSD: yppasswdd,v 1.5 2000/09/19 13:04:39 lukem Exp $
a11 1
rcvar=$name
d20 1
a20 1
		warn "domainname(1) is not set."
@


1.3
log
@Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf.
This allows us or a user to change the configuration file method in
one place - rc.subr - without having to edit all of the rc.d/* files.
@
text
@d3 1
a3 1
# $NetBSD: yppasswdd,v 1.2 2000/03/16 22:22:15 lukem Exp $
d13 1
a13 1
required_vars="portmap ypserv"
@


1.3.2.1
log
@Sync w/ netbsd-1-5-base.
@
text
@d3 1
a3 1
# $NetBSD: yppasswdd,v 1.4 2000/06/02 22:54:13 fvdl Exp $
d13 1
a13 1
required_vars="rpcbind ypserv"
@


1.2
log
@fix check for domainname since it can come from /etc/defaultdomain as well as $domainname
@
text
@d3 1
a3 1
# $NetBSD: yppasswdd,v 1.1.1.1 2000/03/10 11:53:23 lukem Exp $
a9 1
. /etc/rc.conf
d25 1
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
# $NetBSD$
d19 3
a21 2
	if [ -z "$domainname" ]; then
		warn "\$domainname is not set; ${name} not started"
@


1.1.1.1
log
@rc.d scripts derived from /etc/rc
@
text
@@
