Commit Graph

492 Commits

Author SHA1 Message Date
christos 55499e9fb3 Exclude root, since that is done in fsck_root. 2010-02-17 23:32:07 +00:00
mrg c291955dfd only fsck / if we find it in /etc/fstab. diskless systems don't need
a / entry.

XXX: still get an error from "mount /" in etc/rc.d/root itself.
2010-02-16 02:46:02 +00:00
drochner 9b670cd37e fix an obvious typo in directory check 2010-01-23 17:44:44 +00:00
elad 4fc2067c9d Securelevel might not be present, properly complain instead of printing
error messages from sysctl(8).
2009-12-29 17:06:10 +00:00
haad f6e34e608b Add zfs volinit command, suggested by tnn@ this will initialize all zvols
defined in a system. So they can be mounted from fstab as regular block
devices.
2009-10-18 21:58:37 +00:00
tron 8b451badf9 Add proper error reporting via the return code:
Remember if any of the "route" commands failed and return an error in
that case.
2009-10-07 08:06:11 +00:00
tron 9435d86beb Add a "return 0" to avoid incorrect error returns because we ran out of
lines to read from "/etc/route.conf".
2009-10-07 07:51:28 +00:00
haad cc9255a89b Add support for mounting zfs filesystems to mountall script. ZFS configuration
is stored in /etc/zpool.cache and it is automatically loaded to kernel from
filesystem. Filesystems are then configured accordingly to their properties
loaded from cache file.
2009-10-05 22:39:27 +00:00
apb db5a8e6176 Document the fact that wpa_supplicant won't start properly unless
/usr is mounted by mountcritlocal.
2009-09-30 18:17:22 +00:00
tsarna a8bcd3b5c3 Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder. 2009-09-29 23:56:26 +00:00
apb 27a9530c2c Adapt /etc/rc.d/swap1 and swap2 scripts to the new meaning of
exit status 2 from swapctl(8).
2009-09-24 16:45:48 +00:00
apb a83419cd12 Check whether a core dump exists before trying to save it. This should
prevent /etc/rc from thinking that /etc/rc.d/savecore failed.
2009-09-14 17:34:56 +00:00
apb 2fc6cb0baa It's print_rc_metadata, not rc_print_metadata. 2009-09-12 17:40:01 +00:00
cegger e72611bc37 backout rev. 1.59. Will be re-done differently. 2009-09-11 21:25:07 +00:00
apb 3a49704c6b Adapt /etc/rc.d/cgd script to the new /etc/rc:
Add "KEYWORD: interactive" so that prompting for passwords work, and
use print_rc_normal to print a message that could safely be suppressed.

Part of the /etc/rc silent changes requested in PR 41946
and proposed in tech-userlevel.
2009-09-11 18:18:03 +00:00
apb bd87591cb3 Adapt /etc/rc.d/bootconf.sh script to the new /etc/rc:
Add "KEYWORD: interactive" so that the script's prompts work,
and use rc_print_metadata to add a message to the log.

Part of the /etc/rc silent changes requested in PR 41946
and proposed in tech-userlevel.
2009-09-11 18:17:43 +00:00
cegger eb4ebcd11a Do not flush routes if root file system is nfs mounted.
Fixes boot problem when the nfs server is in a different subnet.
2009-09-08 08:56:33 +00:00
apb 7259650e89 Delete a line that was accidentally included from work in progress. 2009-09-06 12:30:45 +00:00
apb 89432e7545 * Use functions from rc.subr, and indent the code.
* Add "KEYWORD: nostart", so /etc/rc doesn't try to run this (it would
  have been harmless anyway).
2009-09-05 16:26:07 +00:00
apb 660b31de3a Use functions from rc.subr. 2009-09-05 16:24:03 +00:00
perry a8420debfe Explicitly set a BEFORE on ntpd, as this can't run while ntpd is
running.

Apparently it is rare for rcorder to place it after ntpd but there was
previously nothing actually preventing it.

Fixes PR 40707 by Ondrej Tuma
2009-08-03 18:43:48 +00:00
perry b3d763cf9b ntpdate can't work without named because a modern ntp.conf has dns
names in it. We therefore now depend on it.

However, this would have then created a circular dependency because named
depended on "SERVERS", and racoon was before SERVERS and required kdc,
and kdc needs the time to be right and thus depended on ntp.

Instead, have named depend on NETWORKING (so that there is a network
there), mountcritremote (so we know that named has a directory to work
from) and syslogd (so that named has some place to spew information).

I'm not sure this is perfect, but it is certainly a big improvement
over constantly failing ntpdate runs during boot.
2009-08-03 17:45:48 +00:00
mbalmer 70d654f756 Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d.  Introduce new variable
"gpio" for /etc/rc.conf.
2009-07-25 16:20:10 +00:00
christos 87fc4e29f5 1. centralize the fsck error handling
2. don't check if root is on nfs
3. reboot -n if root was modified as the manual page suggests
2009-07-10 20:02:21 +00:00
christos 3baf6d1ea8 now that pwd_mkdb does not change the version, warn if we still have version
0 databases.
2009-06-18 22:00:04 +00:00
roy da87763c6e Only start dhcpcd per interface if not running the full dhcpcd daemon.
Only stop dhcpcd pre interface if it's running for the interface.

Fixes PR bin/40320
2009-05-14 15:33:36 +00:00
roy 6bdecd9c27 Add an rc.d script for dhcpcd(8) 2009-04-28 23:30:34 +00:00
apb 49e8137612 Do nothing if root file system has fs_passno=0 in /etc/fstab.
(It might be better to change fsck(8) so that "fsck -p" always checks
fs_passno, whether or not file systems are specified on the command
line.)
2009-04-28 13:08:51 +00:00
christos 923c91a5d0 handle new directory structure. 2009-04-25 15:46:19 +00:00
christos 61af394aa4 PR/41273: Martin Mersberger: missing '/' in /etc/rc.d/named in section
named_migrate
2009-04-24 14:26:02 +00:00
christos ad38869bc4 Adjust for new default location of the pid file. 2009-04-22 18:27:03 +00:00
joerg e7f29a3386 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.
2009-04-21 16:08:57 +00:00
joerg 49451a8f9f Add a small script to visualize the rc dependency graph and point to it. 2009-04-15 22:36:04 +00:00
perry bb9a479c59 un-uppercase pseudodependency for the moment so as not to break pkgsrc 2009-04-15 22:11:32 +00:00
perry 6b9d40b026 uppercase pseudodependency 2009-04-15 22:03:54 +00:00
joerg c06d8659e3 Add missing PROVIDE. 2009-04-15 21:33:57 +00:00
haad 94d1f41faa We need writable /dev to get lvm working otherwise lvm devices can't be created. 2009-04-13 18:48:14 +00:00
martin 58cbc21957 systime() is not needed here - as the man page clearly points out.
Noticed by pooka.
2009-04-08 13:29:59 +00:00
martin d37420f7ca Awk has strftime() and systime(), so no need to pipe the output of date
into the script - just do it internally.
2009-04-08 13:18:56 +00:00
hannken a51a8b101a Add flags to rc.d/ipfilter. Use it from rc.conf like
ipfilter=YES ipfilter_flags="-T fr_statemax=18963,fr_statesize=27091"

Ok: Christos Zoulas <christos@netbsd.org>
2009-03-23 18:52:02 +00:00
haad 75fa841288 When setting LV_LIST variable do not use $LV_LIST. 2009-03-05 10:35:43 +00:00
apb 1cdee1d2a2 The -d or -t flag must appear after -c/-C/-e/-E flags, because of the
way we add the device name. after the flags.
Addresses PR 40495 from Ryo HAYASAKA.
2009-02-02 09:24:47 +00:00
haad 94a80e6646 Rework lvm rc.d script. Check active flag for selected LV not for the first
one. Remove dmtest function.

Most changes are based on feedback from salo@.
2009-01-20 00:40:59 +00:00
haad 660aec81c7 Add lvm rc.d script to build. 2009-01-16 01:59:23 +00:00
haad 6fa32f841f Add lvm rc script for starting LV's during boot. starting lvm is turn off
by default, until MKLVM is enabled by default. This script can be used
without /usr/bin.
2009-01-14 22:07:55 +00:00
lukem 006b668ed0 attempt to make the NOTE a bit more prominent 2009-01-08 02:07:28 +00:00
apb a0398a9d79 * Add etc/rc.d/rndctl script, based on work by Brian A. Seklecki. This
allows you to invoke rndctl(8) during the boot.
* Add rndctl=NO and rndctl_flags="" to /etc/defaults/rc.conf.
* Document rndctl and rndctl_flags variables in rc.conf(5).
2009-01-04 12:10:30 +00:00
isaki cf59801230 x68k pow(4) now uses MI sysmon_pswitch framework. suggested by tsutsui@.
- Make MD poffd(8) retire, and use MI powerd(8) instead of it.
- Make /dev/pow1 retire, because nobody holds /dev/pow0 any longer.
  Use /dev/pow0 for pow(4) ioctl.
- POWIOCSSIGNAL ioctl which is for poffd(8) is also obsoleted.
2008-12-20 13:20:58 +00:00
mishka 43e91ff9f2 Import rc.d/httpd script for httpd(8) daemon control.
See rc.conf(5) for options explanation.
2008-12-11 13:55:16 +00:00
cube 4edff860d5 - Generate xdm and xfs depending on the value of X11FLAVOUR
- Only generate and install them for MKX11 builds
2008-12-05 18:55:22 +00:00