head	1.4;
access;
symbols
	netbsd-11-0-RC4:1.4
	netbsd-11-0-RC3:1.4
	netbsd-11-0-RC2:1.4
	netbsd-11-0-RC1:1.4
	perseant-exfatfs-base-20250801:1.4
	netbsd-11:1.4.0.62
	netbsd-11-base:1.4
	netbsd-10-1-RELEASE:1.4
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.60
	perseant-exfatfs-base:1.4
	netbsd-8-3-RELEASE:1.4
	netbsd-9-4-RELEASE:1.4
	netbsd-10-0-RELEASE:1.4
	netbsd-10-0-RC6:1.4
	netbsd-10-0-RC5:1.4
	netbsd-10-0-RC4:1.4
	netbsd-10-0-RC3:1.4
	netbsd-10-0-RC2:1.4
	netbsd-10-0-RC1:1.4
	netbsd-10:1.4.0.58
	netbsd-10-base:1.4
	netbsd-9-3-RELEASE:1.4
	cjep_sun2x-base1:1.4
	cjep_sun2x:1.4.0.56
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	netbsd-9-2-RELEASE:1.4
	cjep_staticlib_x:1.4.0.54
	cjep_staticlib_x-base:1.4
	netbsd-9-1-RELEASE:1.4
	phil-wifi-20200421:1.4
	phil-wifi-20200411:1.4
	is-mlppp:1.4.0.52
	is-mlppp-base:1.4
	phil-wifi-20200406:1.4
	netbsd-8-2-RELEASE:1.4
	netbsd-9-0-RELEASE:1.4
	netbsd-9-0-RC2:1.4
	netbsd-9-0-RC1:1.4
	phil-wifi-20191119:1.4
	netbsd-9:1.4.0.50
	netbsd-9-base:1.4
	phil-wifi-20190609:1.4
	netbsd-8-1-RELEASE:1.4
	netbsd-8-1-RC1:1.4
	pgoyette-compat-merge-20190127:1.4
	pgoyette-compat-20190127:1.4
	pgoyette-compat-20190118:1.4
	pgoyette-compat-1226:1.4
	pgoyette-compat-1126:1.4
	pgoyette-compat-1020:1.4
	pgoyette-compat-0930:1.4
	pgoyette-compat-0906:1.4
	netbsd-7-2-RELEASE:1.4
	pgoyette-compat-0728:1.4
	netbsd-8-0-RELEASE:1.4
	phil-wifi:1.4.0.48
	phil-wifi-base:1.4
	pgoyette-compat-0625:1.4
	netbsd-8-0-RC2:1.4
	pgoyette-compat-0521:1.4
	pgoyette-compat-0502:1.4
	pgoyette-compat-0422:1.4
	netbsd-8-0-RC1:1.4
	pgoyette-compat-0415:1.4
	pgoyette-compat-0407:1.4
	pgoyette-compat-0330:1.4
	pgoyette-compat-0322:1.4
	pgoyette-compat-0315:1.4
	netbsd-7-1-2-RELEASE:1.4
	pgoyette-compat:1.4.0.46
	pgoyette-compat-base:1.4
	netbsd-7-1-1-RELEASE:1.4
	matt-nb8-mediatek:1.4.0.44
	matt-nb8-mediatek-base:1.4
	perseant-stdc-iso10646:1.4.0.42
	perseant-stdc-iso10646-base:1.4
	netbsd-8:1.4.0.40
	netbsd-8-base:1.4
	prg-localcount2-base3:1.4
	prg-localcount2-base2:1.4
	prg-localcount2-base1:1.4
	prg-localcount2:1.4.0.38
	prg-localcount2-base:1.4
	pgoyette-localcount-20170426:1.4
	bouyer-socketcan-base1:1.4
	pgoyette-localcount-20170320:1.4
	netbsd-7-1:1.4.0.36
	netbsd-7-1-RELEASE:1.4
	netbsd-7-1-RC2:1.4
	netbsd-7-nhusb-base-20170116:1.4
	bouyer-socketcan:1.4.0.34
	bouyer-socketcan-base:1.4
	pgoyette-localcount-20170107:1.4
	netbsd-7-1-RC1:1.4
	pgoyette-localcount-20161104:1.4
	netbsd-7-0-2-RELEASE:1.4
	localcount-20160914:1.4
	netbsd-7-nhusb:1.4.0.32
	netbsd-7-nhusb-base:1.4
	pgoyette-localcount-20160806:1.4
	pgoyette-localcount-20160726:1.4
	pgoyette-localcount:1.4.0.30
	pgoyette-localcount-base:1.4
	netbsd-7-0-1-RELEASE:1.4
	netbsd-7-0:1.4.0.28
	netbsd-7-0-RELEASE:1.4
	netbsd-7-0-RC3:1.4
	netbsd-7-0-RC2:1.4
	netbsd-7-0-RC1:1.4
	netbsd-5-2-3-RELEASE:1.2
	netbsd-5-1-5-RELEASE:1.2
	netbsd-6-0-6-RELEASE:1.4
	netbsd-6-1-5-RELEASE:1.4
	netbsd-7:1.4.0.26
	netbsd-7-base:1.4
	yamt-pagecache-base9:1.4
	yamt-pagecache-tag8:1.4
	netbsd-6-1-4-RELEASE:1.4
	netbsd-6-0-5-RELEASE:1.4
	tls-earlyentropy:1.4.0.24
	tls-earlyentropy-base:1.4
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.4
	riastradh-drm2-base3:1.4
	netbsd-6-1-3-RELEASE:1.4
	netbsd-6-0-4-RELEASE:1.4
	netbsd-5-2-2-RELEASE:1.2
	netbsd-5-1-4-RELEASE:1.2
	netbsd-6-1-2-RELEASE:1.4
	netbsd-6-0-3-RELEASE:1.4
	netbsd-5-2-1-RELEASE:1.2
	netbsd-5-1-3-RELEASE:1.2
	netbsd-6-1-1-RELEASE:1.4
	riastradh-drm2-base2:1.4
	riastradh-drm2-base1:1.4
	riastradh-drm2:1.4.0.16
	riastradh-drm2-base:1.4
	netbsd-6-1:1.4.0.22
	netbsd-6-0-2-RELEASE:1.4
	netbsd-6-1-RELEASE:1.4
	khorben-n900:1.4.0.20
	netbsd-6-1-RC4:1.4
	netbsd-6-1-RC3:1.4
	agc-symver:1.4.0.18
	agc-symver-base:1.4
	netbsd-6-1-RC2:1.4
	netbsd-6-1-RC1:1.4
	yamt-pagecache-base8:1.4
	netbsd-5-2:1.2.0.46
	netbsd-6-0-1-RELEASE:1.4
	yamt-pagecache-base7:1.4
	netbsd-5-2-RELEASE:1.2
	netbsd-5-2-RC1:1.2
	matt-nb6-plus-nbase:1.4
	yamt-pagecache-base6:1.4
	netbsd-6-0:1.4.0.14
	netbsd-6-0-RELEASE:1.4
	netbsd-6-0-RC2:1.4
	tls-maxphys:1.4.0.12
	tls-maxphys-base:1.4
	matt-nb6-plus:1.4.0.10
	matt-nb6-plus-base:1.4
	netbsd-6-0-RC1:1.4
	yamt-pagecache-base5:1.4
	yamt-pagecache-base4:1.4
	netbsd-6:1.4.0.8
	netbsd-6-base:1.4
	netbsd-5-1-2-RELEASE:1.2
	netbsd-5-1-1-RELEASE:1.2
	yamt-pagecache-base3:1.4
	yamt-pagecache-base2:1.4
	yamt-pagecache:1.4.0.6
	yamt-pagecache-base:1.4
	cherry-xenmp:1.4.0.4
	cherry-xenmp-base:1.4
	bouyer-quota2-nbase:1.4
	bouyer-quota2:1.4.0.2
	bouyer-quota2-base:1.4
	matt-mips64-premerge-20101231:1.4
	matt-nb5-mips64-premerge-20101231:1.2
	matt-nb5-pq3:1.2.0.44
	matt-nb5-pq3-base:1.2
	netbsd-5-1:1.2.0.42
	netbsd-5-1-RELEASE:1.2
	netbsd-5-1-RC4:1.2
	matt-nb5-mips64-k15:1.2
	netbsd-5-1-RC3:1.2
	netbsd-5-1-RC2:1.2
	netbsd-5-1-RC1:1.2
	netbsd-5-0-2-RELEASE:1.2
	matt-nb5-mips64-premerge-20091211:1.2
	matt-premerge-20091211:1.4
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.2
	matt-nb4-mips64-k7-u2a-k9b:1.2
	matt-nb5-mips64-u1-k1-k5:1.2
	matt-nb5-mips64:1.2.0.40
	netbsd-5-0-1-RELEASE:1.2
	jym-xensuspend-nbase:1.4
	netbsd-5-0:1.2.0.38
	netbsd-5-0-RELEASE:1.2
	netbsd-5-0-RC4:1.2
	netbsd-5-0-RC3:1.2
	netbsd-5-0-RC2:1.2
	jym-xensuspend:1.2.0.36
	jym-xensuspend-base:1.4
	netbsd-5-0-RC1:1.2
	mjf-devfs2-base2:1.2
	netbsd-5:1.2.0.34
	netbsd-5-base:1.2
	matt-mips64-base2:1.2
	matt-mips64:1.2.0.32
	netbsd-4-0-1-RELEASE:1.2
	wrstuden-revivesa-base-3:1.2
	wrstuden-revivesa-base-2:1.2
	wrstuden-fixsa-newbase:1.2
	wrstuden-revivesa-base-1:1.2
	yamt-pf42-base4:1.2
	yamt-pf42-base3:1.2
	hpcarm-cleanup-nbase:1.2
	yamt-pf42-baseX:1.2
	yamt-pf42-base2:1.2
	wrstuden-revivesa:1.2.0.30
	wrstuden-revivesa-base:1.2
	yamt-pf42:1.2.0.28
	yamt-pf42-base:1.2
	mjf-devfs2:1.2.0.26
	mjf-devfs2-base:1.2
	keiichi-mipv6:1.2.0.24
	keiichi-mipv6-base:1.2
	mjf-devfs:1.2.0.22
	mjf-devfs-base:1.2
	matt-armv6-nbase:1.2
	matt-armv6-prevmlocking:1.2
	wrstuden-fixsa-base-1:1.2
	netbsd-4-0:1.2.0.20
	netbsd-4-0-RELEASE:1.2
	cube-autoconf:1.2.0.18
	cube-autoconf-base:1.2
	netbsd-4-0-RC5:1.2
	netbsd-4-0-RC4:1.2
	netbsd-4-0-RC3:1.2
	netbsd-4-0-RC2:1.2
	netbsd-4-0-RC1:1.2
	matt-armv6:1.2.0.16
	matt-armv6-base:1.2
	matt-mips64-base:1.2
	hpcarm-cleanup:1.2.0.14
	hpcarm-cleanup-base:1.2
	netbsd-3-1-1-RELEASE:1.2
	netbsd-3-0-3-RELEASE:1.2
	wrstuden-fixsa:1.2.0.12
	wrstuden-fixsa-base:1.2
	abandoned-netbsd-4-base:1.2
	abandoned-netbsd-4:1.2.0.6
	netbsd-3-1:1.2.0.8
	netbsd-3-1-RELEASE:1.2
	netbsd-3-0-2-RELEASE:1.2
	netbsd-3-1-RC4:1.2
	netbsd-3-1-RC3:1.2
	netbsd-3-1-RC2:1.2
	netbsd-3-1-RC1:1.2
	netbsd-4:1.2.0.10
	netbsd-4-base:1.2
	netbsd-3-0-1-RELEASE:1.2
	netbsd-3-0:1.2.0.4
	netbsd-3-0-RELEASE:1.2
	netbsd-3-0-RC6:1.2
	netbsd-3-0-RC5:1.2
	netbsd-3-0-RC4:1.2
	netbsd-3-0-RC3:1.2
	netbsd-3-0-RC2:1.2
	netbsd-3-0-RC1:1.2
	netbsd-2-0-3-RELEASE:1.1
	netbsd-2-1:1.1.0.8
	netbsd-2-1-RELEASE:1.1
	netbsd-2-1-RC6:1.1
	netbsd-2-1-RC5:1.1
	netbsd-2-1-RC4:1.1
	netbsd-2-1-RC3:1.1
	netbsd-2-1-RC2:1.1
	netbsd-2-1-RC1:1.1
	netbsd-2-0-2-RELEASE:1.1
	netbsd-3:1.2.0.2
	netbsd-3-base:1.2
	netbsd-2-0-1-RELEASE:1.1
	netbsd-2:1.1.0.6
	netbsd-2-base:1.1
	netbsd-2-0-RELEASE:1.1
	netbsd-2-0-RC5:1.1
	netbsd-2-0-RC4:1.1
	netbsd-2-0-RC3:1.1
	netbsd-2-0-RC2:1.1
	netbsd-2-0-RC1:1.1
	netbsd-2-0:1.1.0.4
	netbsd-2-0-base:1.1
	netbsd-1-6-PATCH002-RELEASE:1.1.2.2
	netbsd-1-6-PATCH002:1.1.2.2
	netbsd-1-6-PATCH002-RC4:1.1.2.2
	netbsd-1-6-PATCH002-RC3:1.1.2.2
	netbsd-1-6-PATCH002-RC2:1.1.2.2
	netbsd-1-6-PATCH002-RC1:1.1.2.2
	netbsd-1-6-PATCH001:1.1.2.2
	netbsd-1-6-PATCH001-RELEASE:1.1.2.2
	netbsd-1-6-PATCH001-RC3:1.1.2.2
	netbsd-1-6-PATCH001-RC2:1.1.2.2
	netbsd-1-6-PATCH001-RC1:1.1.2.2
	fvdl_fs64_base:1.1
	netbsd-1-6:1.1.0.2;
locks; strict;
comment	@# @;


1.4
date	2009.04.21.16.08.57;	author joerg;	state Exp;
branches;
next	1.3;

1.3
date	2009.04.15.21.33.57;	author joerg;	state Exp;
branches;
next	1.2;

1.2
date	2004.08.13.18.08.03;	author mycroft;	state Exp;
branches
	1.2.22.1
	1.2.26.1
	1.2.36.1;
next	1.1;

1.1
date	2002.07.30.05.58.43;	author thorpej;	state Exp;
branches
	1.1.2.1;
next	;

1.2.22.1
date	2008.02.18.22.07.01;	author mjf;	state Exp;
branches;
next	;

1.2.26.1
date	2008.02.21.20.44.55;	author mjf;	state Exp;
branches;
next	;

1.2.36.1
date	2009.05.13.19.18.03;	author jym;	state Exp;
branches;
next	;

1.1.2.1
date	2002.07.30.05.58.43;	author he;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2002.11.11.23.42.03;	author he;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Split fsck during boot into two phases. Check the root file system
first, mount root and run the various disk providers. Add swap and
check the remaining file systems after that.
This breaks the dependency cycle for lvm, which needs writeable /dev.
Depend on rndctl in cgd.
@
text
@#!/bin/sh
#
# $NetBSD: wdogctl,v 1.3 2009/04/15 21:33:57 joerg Exp $
#

# PROVIDE: wdogctl
# BEFORE:  fsck_root

# The watchdog is configured VERY early, so that any problems that
# occur during the bootstrap process are protected by the watchdog.

$_rc_subr_loaded . /etc/rc.subr

name="wdogctl"
rcvar=$name

start_cmd="watchdog_start"
stop_cmd="watchdog_stop"
status_cmd="watchdog_status"

extra_commands="status"

watchdog_start()
{
	if [ x"${wdogctl_flags}" = "x" ]; then
		warn "\${wdogctl_flags} is not set, watchdog not started"
	else
		echo "Starting watchdog timer."
		/sbin/wdogctl ${wdogctl_flags}
	fi
}

watchdog_stop()
{
	echo "Stopping watchdog timer."
	/sbin/wdogctl -d
}

watchdog_status()
{
	/sbin/wdogctl
}

load_rc_config $name
run_rc_command "$1"
@


1.3
log
@Add missing PROVIDE.
@
text
@d3 1
a3 1
# $NetBSD: wdogctl,v 1.2 2004/08/13 18:08:03 mycroft Exp $
d7 1
a7 1
# BEFORE:  disks
@


1.2
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: wdogctl,v 1.1 2002/07/30 05:58:43 thorpej Exp $
d6 1
@


1.2.36.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d3 1
a3 1
# $NetBSD: wdogctl,v 1.4 2009/04/21 16:08:57 joerg Exp $
d6 1
a6 2
# PROVIDE: wdogctl
# BEFORE:  fsck_root
@


1.2.26.1
log
@Start where the mjf-devfs branch left off.
@
text
@d3 1
a3 1
# $NetBSD: wdogctl,v 1.2 2004/08/13 18:08:03 mycroft Exp $
a6 1
# REQUIRE: devs
@


1.2.22.1
log
@Add some devfs code that's been sitting in my local tree for a while.

devfsd(8) is now the first daemon to be started after init(8). It tracks
device insertion (will eventually track removal) and devfs mounts.

Currently, we can mount multiple device file systems and have device
special files pushed into the mounts automatically, though, the device
special files aren't created with the correct major/minor number pairs
yet.

More work to come soon.
@
text
@d3 1
a3 1
# $NetBSD: wdogctl,v 1.2 2004/08/13 18:08:03 mycroft Exp $
a6 1
# REQUIRE: devs
@


1.1
log
@Add a wdogctl startup/shutdown script.
@
text
@d3 1
a3 1
# $NetBSD$
d11 1
a11 1
. /etc/rc.subr
@


1.1.2.1
log
@file wdogctl was added on branch netbsd-1-6 on 2002-11-11 23:42:03 +0000
@
text
@d1 44
@


1.1.2.2
log
@Pull up revision 1.1 (new, requested by thorpej in ticket #584):
  Add a wdogctl startup/shutdown script.
@
text
@a0 44
#!/bin/sh
#
# $NetBSD: wdogctl,v 1.1.2.1 2002/11/11 23:42:03 he Exp $
#

# BEFORE:  disks

# The watchdog is configured VERY early, so that any problems that
# occur during the bootstrap process are protected by the watchdog.

. /etc/rc.subr

name="wdogctl"
rcvar=$name

start_cmd="watchdog_start"
stop_cmd="watchdog_stop"
status_cmd="watchdog_status"

extra_commands="status"

watchdog_start()
{
	if [ x"${wdogctl_flags}" = "x" ]; then
		warn "\${wdogctl_flags} is not set, watchdog not started"
	else
		echo "Starting watchdog timer."
		/sbin/wdogctl ${wdogctl_flags}
	fi
}

watchdog_stop()
{
	echo "Stopping watchdog timer."
	/sbin/wdogctl -d
}

watchdog_status()
{
	/sbin/wdogctl
}

load_rc_config $name
run_rc_command "$1"
@
