head	1.11;
access;
symbols
	netbsd-11-0-RC6:1.11
	netbsd-11-0-RC5:1.11
	netbsd-11-0-RC4:1.11
	netbsd-11-0-RC3:1.11
	netbsd-11-0-RC2:1.11
	netbsd-11-0-RC1:1.11
	perseant-exfatfs-base-20250801:1.11
	netbsd-11:1.11.0.46
	netbsd-11-base:1.11
	netbsd-10-1-RELEASE:1.11
	perseant-exfatfs-base-20240630:1.11
	perseant-exfatfs:1.11.0.44
	perseant-exfatfs-base:1.11
	netbsd-8-3-RELEASE:1.11
	netbsd-9-4-RELEASE:1.11
	netbsd-10-0-RELEASE:1.11
	netbsd-10-0-RC6:1.11
	netbsd-10-0-RC5:1.11
	netbsd-10-0-RC4:1.11
	netbsd-10-0-RC3:1.11
	netbsd-10-0-RC2:1.11
	netbsd-10-0-RC1:1.11
	netbsd-10:1.11.0.42
	netbsd-10-base:1.11
	netbsd-9-3-RELEASE:1.11
	cjep_sun2x-base1:1.11
	cjep_sun2x:1.11.0.40
	cjep_sun2x-base:1.11
	cjep_staticlib_x-base1:1.11
	netbsd-9-2-RELEASE:1.11
	cjep_staticlib_x:1.11.0.38
	cjep_staticlib_x-base:1.11
	netbsd-9-1-RELEASE:1.11
	phil-wifi-20200421:1.11
	phil-wifi-20200411:1.11
	is-mlppp:1.11.0.36
	is-mlppp-base:1.11
	phil-wifi-20200406:1.11
	netbsd-8-2-RELEASE:1.11
	netbsd-9-0-RELEASE:1.11
	netbsd-9-0-RC2:1.11
	netbsd-9-0-RC1:1.11
	phil-wifi-20191119:1.11
	netbsd-9:1.11.0.34
	netbsd-9-base:1.11
	phil-wifi-20190609:1.11
	netbsd-8-1-RELEASE:1.11
	netbsd-8-1-RC1:1.11
	pgoyette-compat-merge-20190127:1.11
	pgoyette-compat-20190127:1.11
	pgoyette-compat-20190118:1.11
	pgoyette-compat-1226:1.11
	pgoyette-compat-1126:1.11
	pgoyette-compat-1020:1.11
	pgoyette-compat-0930:1.11
	pgoyette-compat-0906:1.11
	netbsd-7-2-RELEASE:1.11
	pgoyette-compat-0728:1.11
	netbsd-8-0-RELEASE:1.11
	phil-wifi:1.11.0.32
	phil-wifi-base:1.11
	pgoyette-compat-0625:1.11
	netbsd-8-0-RC2:1.11
	pgoyette-compat-0521:1.11
	pgoyette-compat-0502:1.11
	pgoyette-compat-0422:1.11
	netbsd-8-0-RC1:1.11
	pgoyette-compat-0415:1.11
	pgoyette-compat-0407:1.11
	pgoyette-compat-0330:1.11
	pgoyette-compat-0322:1.11
	pgoyette-compat-0315:1.11
	netbsd-7-1-2-RELEASE:1.11
	pgoyette-compat:1.11.0.30
	pgoyette-compat-base:1.11
	netbsd-7-1-1-RELEASE:1.11
	matt-nb8-mediatek:1.11.0.28
	matt-nb8-mediatek-base:1.11
	perseant-stdc-iso10646:1.11.0.26
	perseant-stdc-iso10646-base:1.11
	netbsd-8:1.11.0.24
	netbsd-8-base:1.11
	prg-localcount2-base3:1.11
	prg-localcount2-base2:1.11
	prg-localcount2-base1:1.11
	prg-localcount2:1.11.0.22
	prg-localcount2-base:1.11
	pgoyette-localcount-20170426:1.11
	bouyer-socketcan-base1:1.11
	pgoyette-localcount-20170320:1.11
	netbsd-7-1:1.11.0.20
	netbsd-7-1-RELEASE:1.11
	netbsd-7-1-RC2:1.11
	netbsd-7-nhusb-base-20170116:1.11
	bouyer-socketcan:1.11.0.18
	bouyer-socketcan-base:1.11
	pgoyette-localcount-20170107:1.11
	netbsd-7-1-RC1:1.11
	pgoyette-localcount-20161104:1.11
	netbsd-7-0-2-RELEASE:1.11
	localcount-20160914:1.11
	netbsd-7-nhusb:1.11.0.16
	netbsd-7-nhusb-base:1.11
	pgoyette-localcount-20160806:1.11
	pgoyette-localcount-20160726:1.11
	pgoyette-localcount:1.11.0.14
	pgoyette-localcount-base:1.11
	netbsd-7-0-1-RELEASE:1.11
	netbsd-7-0:1.11.0.12
	netbsd-7-0-RELEASE:1.11
	netbsd-7-0-RC3:1.11
	netbsd-7-0-RC2:1.11
	netbsd-7-0-RC1:1.11
	netbsd-5-2-3-RELEASE:1.8
	netbsd-5-1-5-RELEASE:1.8
	netbsd-6-0-6-RELEASE:1.8
	netbsd-6-1-5-RELEASE:1.8
	netbsd-7:1.11.0.10
	netbsd-7-base:1.11
	yamt-pagecache-base9:1.11
	yamt-pagecache-tag8:1.8.50.2
	netbsd-6-1-4-RELEASE:1.8
	netbsd-6-0-5-RELEASE:1.8
	tls-earlyentropy:1.11.0.8
	tls-earlyentropy-base:1.11
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.11
	riastradh-drm2-base3:1.11
	netbsd-6-1-3-RELEASE:1.8
	netbsd-6-0-4-RELEASE:1.8
	netbsd-5-2-2-RELEASE:1.8
	netbsd-5-1-4-RELEASE:1.8
	netbsd-6-1-2-RELEASE:1.8
	netbsd-6-0-3-RELEASE:1.8
	netbsd-5-2-1-RELEASE:1.8
	netbsd-5-1-3-RELEASE:1.8
	netbsd-6-1-1-RELEASE:1.8
	riastradh-drm2-base2:1.11
	riastradh-drm2-base1:1.11
	riastradh-drm2:1.11.0.2
	riastradh-drm2-base:1.11
	netbsd-6-1:1.8.0.62
	netbsd-6-0-2-RELEASE:1.8
	netbsd-6-1-RELEASE:1.8
	khorben-n900:1.11.0.6
	netbsd-6-1-RC4:1.8
	netbsd-6-1-RC3:1.8
	agc-symver:1.11.0.4
	agc-symver-base:1.11
	netbsd-6-1-RC2:1.8
	netbsd-6-1-RC1:1.8
	yamt-pagecache-base8:1.11
	netbsd-5-2:1.8.0.60
	netbsd-6-0-1-RELEASE:1.8
	yamt-pagecache-base7:1.9
	netbsd-5-2-RELEASE:1.8
	netbsd-5-2-RC1:1.8
	matt-nb6-plus-nbase:1.8
	yamt-pagecache-base6:1.8
	netbsd-6-0:1.8.0.58
	netbsd-6-0-RELEASE:1.8
	netbsd-6-0-RC2:1.8
	tls-maxphys:1.8.0.56
	tls-maxphys-base:1.11
	matt-nb6-plus:1.8.0.54
	matt-nb6-plus-base:1.8
	netbsd-6-0-RC1:1.8
	yamt-pagecache-base5:1.8
	yamt-pagecache-base4:1.8
	netbsd-6:1.8.0.52
	netbsd-6-base:1.8
	netbsd-5-1-2-RELEASE:1.8
	netbsd-5-1-1-RELEASE:1.8
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.50
	yamt-pagecache-base:1.8
	cherry-xenmp:1.8.0.48
	cherry-xenmp-base:1.8
	bouyer-quota2-nbase:1.8
	bouyer-quota2:1.8.0.46
	bouyer-quota2-base:1.8
	matt-mips64-premerge-20101231:1.8
	matt-nb5-mips64-premerge-20101231:1.8
	matt-nb5-pq3:1.8.0.44
	matt-nb5-pq3-base:1.8
	netbsd-5-1:1.8.0.42
	netbsd-5-1-RELEASE:1.8
	netbsd-5-1-RC4:1.8
	matt-nb5-mips64-k15:1.8
	netbsd-5-1-RC3:1.8
	netbsd-5-1-RC2:1.8
	netbsd-5-1-RC1:1.8
	netbsd-5-0-2-RELEASE:1.8
	matt-nb5-mips64-premerge-20091211:1.8
	matt-premerge-20091211:1.8
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.8
	matt-nb4-mips64-k7-u2a-k9b:1.8
	matt-nb5-mips64-u1-k1-k5:1.8
	matt-nb5-mips64:1.8.0.40
	netbsd-5-0-1-RELEASE:1.8
	jym-xensuspend-nbase:1.8
	netbsd-5-0:1.8.0.38
	netbsd-5-0-RELEASE:1.8
	netbsd-5-0-RC4:1.8
	netbsd-5-0-RC3:1.8
	netbsd-5-0-RC2:1.8
	jym-xensuspend:1.8.0.36
	jym-xensuspend-base:1.8
	netbsd-5-0-RC1:1.8
	mjf-devfs2-base2:1.8
	netbsd-5:1.8.0.34
	netbsd-5-base:1.8
	matt-mips64-base2:1.8
	matt-mips64:1.8.0.32
	netbsd-4-0-1-RELEASE:1.8
	wrstuden-revivesa-base-3:1.8
	wrstuden-revivesa-base-2:1.8
	wrstuden-fixsa-newbase:1.8
	wrstuden-revivesa-base-1:1.8
	yamt-pf42-base4:1.8
	yamt-pf42-base3:1.8
	hpcarm-cleanup-nbase:1.8
	yamt-pf42-baseX:1.8
	yamt-pf42-base2:1.8
	wrstuden-revivesa:1.8.0.30
	wrstuden-revivesa-base:1.8
	yamt-pf42:1.8.0.28
	yamt-pf42-base:1.8
	mjf-devfs2:1.8.0.26
	mjf-devfs2-base:1.8
	keiichi-mipv6:1.8.0.24
	keiichi-mipv6-base:1.8
	mjf-devfs:1.8.0.22
	mjf-devfs-base:1.8
	matt-armv6-nbase:1.8
	matt-armv6-prevmlocking:1.8
	wrstuden-fixsa-base-1:1.8
	netbsd-4-0:1.8.0.20
	netbsd-4-0-RELEASE:1.8
	cube-autoconf:1.8.0.18
	cube-autoconf-base:1.8
	netbsd-4-0-RC5:1.8
	netbsd-4-0-RC4:1.8
	netbsd-4-0-RC3:1.8
	netbsd-4-0-RC2:1.8
	netbsd-4-0-RC1:1.8
	matt-armv6:1.8.0.16
	matt-armv6-base:1.8
	matt-mips64-base:1.8
	hpcarm-cleanup:1.8.0.14
	hpcarm-cleanup-base:1.8
	netbsd-3-1-1-RELEASE:1.8
	netbsd-3-0-3-RELEASE:1.8
	wrstuden-fixsa:1.8.0.12
	wrstuden-fixsa-base:1.8
	abandoned-netbsd-4-base:1.8
	abandoned-netbsd-4:1.8.0.6
	netbsd-3-1:1.8.0.8
	netbsd-3-1-RELEASE:1.8
	netbsd-3-0-2-RELEASE:1.8
	netbsd-3-1-RC4:1.8
	netbsd-3-1-RC3:1.8
	netbsd-3-1-RC2:1.8
	netbsd-3-1-RC1:1.8
	netbsd-4:1.8.0.10
	netbsd-4-base:1.8
	netbsd-3-0-1-RELEASE:1.8
	netbsd-3-0:1.8.0.4
	netbsd-3-0-RELEASE:1.8
	netbsd-3-0-RC6:1.8
	netbsd-3-0-RC5:1.8
	netbsd-3-0-RC4:1.8
	netbsd-3-0-RC3:1.8
	netbsd-3-0-RC2:1.8
	netbsd-3-0-RC1:1.8
	netbsd-2-0-3-RELEASE:1.6
	netbsd-2-1:1.6.0.8
	netbsd-2-1-RELEASE:1.6
	netbsd-2-1-RC6:1.6
	netbsd-2-1-RC5:1.6
	netbsd-2-1-RC4:1.6
	netbsd-2-1-RC3:1.6
	netbsd-2-1-RC2:1.6
	netbsd-2-1-RC1:1.6
	netbsd-2-0-2-RELEASE:1.6
	netbsd-3:1.8.0.2
	netbsd-3-base:1.8
	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.2.4.2
	netbsd-1-5-PATCH002:1.2.4.2
	netbsd-1-5-PATCH001:1.2.4.2
	netbsd-1-5-RELEASE:1.2.4.1
	netbsd-1-5-BETA2:1.2.4.1
	netbsd-1-5-BETA:1.2.4.1
	netbsd-1-5-ALPHA2:1.2.4.1
	netbsd-1-5:1.2.0.4
	netbsd-1-5-base:1.2
	minoura-xpg4dl:1.2.0.2
	minoura-xpg4dl-base:1.2
	rc-d-2000-03-10:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.11
date	2013.01.13.18.47.58;	author prlw1;	state Exp;
branches;
next	1.10;

1.10
date	2012.12.13.21.51.52;	author wiz;	state Exp;
branches;
next	1.9;

1.9
date	2012.12.04.16.38.40;	author prlw1;	state Exp;
branches;
next	1.8;

1.8
date	2004.10.11.15.00.51;	author christos;	state Exp;
branches
	1.8.50.1
	1.8.56.1;
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.33.59;	author thorpej;	state Exp;
branches;
next	1.5;

1.5
date	2001.02.11.00.51.35;	author fredb;	state Exp;
branches;
next	1.4;

1.4
date	2000.08.02.11.07.51;	author hubertf;	state Exp;
branches;
next	1.3;

1.3
date	2000.07.26.00.11.49;	author lukem;	state Exp;
branches;
next	1.2;

1.2
date	2000.05.13.08.45.08;	author lukem;	state Exp;
branches
	1.2.4.1;
next	1.1;

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

1.8.50.1
date	2013.01.16.05.26.13;	author yamt;	state Exp;
branches;
next	1.8.50.2;

1.8.50.2
date	2013.01.23.00.04.30;	author yamt;	state Exp;
branches;
next	;

1.8.56.1
date	2013.02.25.00.24.52;	author tls;	state Exp;
branches;
next	;

1.2.4.1
date	2000.08.09.19.09.45;	author lukem;	state Exp;
branches;
next	1.2.4.2;

1.2.4.2
date	2001.03.13.20.55.05;	author he;	state Exp;
branches;
next	;

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


desc
@@


1.11
log
@Add ppp=YES variable. Currently pppd(8) starts automatically if ppp_peers
is not empty. Adding a ppp variable allows the default peer to be set,
and ppp set to NO so that dialing can happen with /etc/rc.d/ppp onestart.
Default set to YES so that old behaviour is preserved.
http://mail-index.netbsd.org/tech-userlevel/2012/08/21/msg006656.html
@
text
@#!/bin/sh
#
# $NetBSD: ppp,v 1.10 2012/12/13 21:51:52 wiz Exp $
#

# PROVIDE: ppp
# REQUIRE: mountcritremote syslogd
# BEFORE:  SERVERS
#
#	Note that this means that syslogd will not be listening on
#	any PPP addresses.  This is considered a feature.
#

$_rc_subr_loaded . /etc/rc.subr

name="ppp"
rcvar=$name
start_cmd="ppp_start"
stop_cmd="ppp_stop"
sig_stop="-INT"
sig_hup="-HUP"
hup_cmd="ppp_hup"
extra_commands="hup"

ppp_start()
{
	#	/etc/ppp/peers and $ppp_peers contain boot configuration
	#	information for pppd.  each value in $ppp_peers that has a
	#	file in /etc/ppp/peers of the same name, will be run as
	#	`pppd call <peer>'.
	#
	if [ -n "$ppp_peers" ]; then
		set -- $ppp_peers
		echo -n "Starting pppd:"
		while [ $# -ge 1 ]; do
			peer=$1
			shift
			if [ -f /etc/ppp/peers/$peer ]; then
				pppd call $peer
				echo -n " $peer"
			fi
		done
		echo "."
	fi
}

ppp_hup()
{
	pids="$(check_process pppd)"
	if [ -n "$pids" ]; then
		for pid in $pids; do
			kill $sig_hup $pid
		done
	fi
}

ppp_stop()
{
	pids="$(check_process pppd)"
	if [ -n "$pids" ]; then
		for pid in $pids; do
			kill $sig_stop $pid
		done
	fi
}

load_rc_config $name
run_rc_command "$1"
@


1.10
log
@Revert previous.
At the least, it was committed with the wrong commit message.
@
text
@d3 1
a3 1
# $NetBSD: ppp,v 1.9 2012/12/04 16:38:40 prlw1 Exp $
d17 1
@


1.9
log
@Make sure that ntpd creates a pid file for the rc machinery to work.
http://mail-index.netbsd.org/current-users/2012/11/19/msg021518.html
@
text
@d3 1
a3 1
# $NetBSD: ppp,v 1.8 2004/10/11 15:00:51 christos Exp $
a16 1
rcvar=$name
a42 2
	else
		warn "\${ppp_peers} is not set - pppd was not started."
@


1.8
log
@Use new style command substitution.
@
text
@d3 1
a3 1
# $NetBSD: ppp,v 1.7 2004/08/13 18:08:03 mycroft Exp $
d17 1
d44 2
@


1.8.56.1
log
@resync with head
@
text
@d3 1
a3 1
# $NetBSD: ppp,v 1.8 2004/10/11 15:00:51 christos Exp $
a16 1
rcvar=$name
@


1.8.50.1
log
@sync with (a bit old) head
@
text
@d3 1
a3 1
# $NetBSD: ppp,v 1.8 2004/10/11 15:00:51 christos Exp $
a16 1
rcvar=$name
a42 2
	else
		warn "\${ppp_peers} is not set - pppd was not started."
@


1.8.50.2
log
@sync with head
@
text
@d3 1
a3 1
# $NetBSD: ppp,v 1.8.50.1 2013/01/16 05:26:13 yamt Exp $
d44 2
@


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: ppp,v 1.6 2002/03/22 04:33:59 thorpej Exp $
d48 1
a48 1
	pids="`check_process pppd`"
d58 1
a58 1
	pids="`check_process pppd`"
@


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: ppp,v 1.5 2001/02/11 00:51:35 fredb Exp $
d14 1
a14 1
. /etc/rc.subr
@


1.5
log
@Add "hup" and "stop" commands. Closes PR bin/12135.
@
text
@d3 1
a3 1
# $NetBSD: ppp,v 1.4 2000/08/02 11:07:51 hubertf Exp $
d8 1
@


1.4
log
@Adjust comment to what's actually being done
@
text
@d3 1
a3 1
# $NetBSD: ppp,v 1.3 2000/07/26 00:11:49 lukem Exp $
d17 5
a21 1
stop_cmd=":"
d42 20
@


1.3
log
@* add new dummy dependancy `NETWORK' to be REQUIREd by services which need
  networking to be operational before starting, and use as appropriate.
  NETWORK depends upon network and dhclient.
* move the guts of systemfs into mountcritlocal
* replace the dependancy on systemfs with mountcritremote, and remove the
  former.
* SERVERS now also depends upon ppp

Notes:
* dhclient (and others) needs /var to be a $critical_filesystem_beforenet
* dhclient now starts before syslogd (because the latter needs /usr, and
  /usr might need dhclient to be mounted)

Should fix PRs:
    [install/9853] [bin/10002] [misc/10349] [port-i386/10633] [misc/10641]
@
text
@d3 1
a3 1
# $NetBSD: ppp,v 1.2 2000/05/13 08:45:08 lukem Exp $
d24 1
a24 1
	#	`pppd <peer>'.
@


1.2
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: ppp,v 1.1.1.1 2000/03/10 11:53:24 lukem Exp $
a5 1
#	should provide `network' perhaps?
d7 5
a11 3
#	note that this means that syslogd will not be listening on
#	any PPP addresses.  this is considered a feature.
# REQUIRE: systemfs syslogd
@


1.2.4.1
log
@pull up the following
approved by: thorpej

	etc/rc.d/DAEMON		1.3
	etc/rc.d/LOGIN		1.3
	etc/rc.d/NETWORK	1.1
	etc/rc.d/SERVERS	1.2
	etc/rc.d/cron		1.4
	etc/rc.d/dhclient	1.6
	etc/rc.d/dmesg		1.4
	etc/rc.d/inetd		1.5
	etc/rc.d/lkm1		1.3
	etc/rc.d/lkm2		1.3
	etc/rc.d/lkm3		1.4
	etc/rc.d/motd		1.3
	etc/rc.d/mountcritlocal		1.3-1.4
	etc/rc.d/mountcritremote	1.3
	etc/rc.d/mountd		1.7
	etc/rc.d/network	1.12 1.14
	etc/rc.d/ntpdate	1.4
	etc/rc.d/ppp		1.3-1.4
	etc/rc.d/pwcheck	1.3
	etc/rc.d/rpcbind	1.4
	etc/rc.d/sshd		1.3-1.5
	etc/rc.d/swap1		1.5
	etc/rc.d/swap2		1.4
	etc/rc.d/sysdb		1.3-1.4
	etc/rc.d/syslogd	1.5-1.6
	etc/rc.d/systemfs	REMOVE
	etc/rc.d/virecover	1.3
	etc/rc.d/wscons		1.4
	etc/rc.d/xdm		1.5

summary:

* reword descriptions
* add '# KEYWORD: shutdown' to some of these scripts so that only they get run
  at shutdown time.  now, only scripts with the keyword `shutdown' will be
  run by /etc/rc.shutdown, which speeds up shutdown and makes it more robust
* add new dummy dependancy `NETWORK' to be REQUIREd by services which need
  networking to be operational before starting, and use as appropriate.
  NETWORK depends upon network and dhclient.
* move the guts of systemfs into mountcritlocal
* replace the dependancy on systemfs with mountcritremote, and remove the
  former.
* SERVERS now also depends upon ppp
* move recreating /var/run/utmp from mountcritlocal (where /var/run is
  purged but /usr/bin/install is not available) to sysdb.
  problem noted by Matthias Drochner.
* share the same load_rc_config between the lkm* scripts
* network: Don't warn that $hostname isn't set if the hostname is already set.
* network: reenable stop_cmd now that network doesn't get run at shutdown
* add sshd startup script
* use "load_rc_config swap" for swap1 and swap2
* syslog requires databases from sysdb which creates /var/run/utmp.

Should fix PRs:
    [install/9853] [bin/10002] [misc/10349] [port-i386/10633] [misc/10641]
@
text
@d3 1
a3 1
# $NetBSD: ppp,v 1.4 2000/08/02 11:07:51 hubertf Exp $
d6 1
d8 3
a10 5
# REQUIRE: mountcritremote syslogd
#
#	Note that this means that syslogd will not be listening on
#	any PPP addresses.  This is considered a feature.
#
d23 1
a23 1
	#	`pppd call <peer>'.
@


1.2.4.2
log
@Pull up revision 1.5 (requested by fredb):
  Add ``stop'' and ``hup'' commands.
@
text
@d3 1
a3 1
# $NetBSD: ppp,v 1.2.4.1 2000/08/09 19:09:45 lukem Exp $
d17 1
a17 5
stop_cmd="ppp_stop"
sig_stop="-INT"
sig_hup="-HUP"
hup_cmd="ppp_hup"
extra_commands="hup"
a37 20
	fi
}

ppp_hup()
{
	pids="`check_process pppd`"
	if [ -n "$pids" ]; then
		for pid in $pids; do
			kill $sig_hup $pid
		done
	fi
}

ppp_stop()
{
	pids="`check_process pppd`"
	if [ -n "$pids" ]; then
		for pid in $pids; do
			kill $sig_stop $pid
		done
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
# $NetBSD$
a12 1
. /etc/rc.conf
d40 1
@


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