Commit Graph

156 Commits

Author SHA1 Message Date
lukem b6742129e8 move date before rcorder 2001-03-12 15:56:39 +00:00
lukem c47a806047 various speed-ups (and related work):
- only load rc.conf if $_rc_conf_loaded is not set
- use case instead of if for various string comparisons
- print the date at the start of the boot as well as at the end
- if $rc_fast_and_loose is set, always run the rc.d scripts in the
  current shell rather than in a subshell. this is not on by default
  because it's potentially dangerous (a rogue command could terminate
  the boot), but it is provided as an optional speedup for people
  with slow machines that have an expensive fork
2001-02-28 16:49:18 +00:00
lukem 6eef11f223 - describe what rc.shutdown does, and what invokes it
- remove `.sh' suffix on script name in description
2000-12-15 00:00:09 +00:00
lukem 49533ad06e don't start rc.d scripts with a `nostart' keyword 2000-08-21 23:09:50 +00:00
lukem caa2beb10e revert previous; the fast-start functionality already existed, and
works at multi-user boot. (starting /etc/rc after single user boot
doesn't exhibit this fast start behaviour).
2000-04-22 03:01:22 +00:00
simonb 5e6480feca Add an "rc_fastboot" variable check in rc.subr, that if set adds
"fast" to the start of the run_rc_command arg.

/etc/rc calls each rc.d script with rc_fastboot=yes so that rc.subr
aware scripts to use "faststart" to skip the process running check.
2000-04-19 04:26:22 +00:00
enami e8b27ae5ed Check rc_configured also here, and bail out if it isn't set to yes. 2000-03-29 02:13:51 +00:00
lukem 8f8c6d6b2a run scripts in /etc/rc.d/* in the order returned by rcorder 2000-03-10 13:15:58 +00:00
jdolecek 020a8ac5b2 make clearing of /tmp after reboot configurable (default on), as per recent
discussion on current-users
2000-03-07 14:33:13 +00:00
itojun 7a0d226970 ip6forwarding -> ip6mode change (somehow i forgot to commit...)
PR: 9375
2000-02-09 16:24:03 +00:00
itojun e9056d34cb change IPv6 configuration syntax to avoid ambiguity.
ip6mode=host: IPv6 host
ip6mode=autohost: IPv6 host, with autoconfig
ip6mode=router: IPv6 router

backward compatibility to "ip6forwading" is provided.
2000-02-05 17:02:42 +00:00
jdc f58c419f41 Allow NFS servers to start up. 2000-01-31 12:47:29 +00:00
tron 7c5a18e4d2 Start automount daemon even if NFS client is not activated. This makes
sense for system where "amd" is used to mount local devices like e.g.
CD-ROM drives. Fixes PR misc/9126 by Bjoern Labitzke.
2000-01-19 12:00:49 +00:00
enami 5a3473733a Make some warning message consistient with others. 2000-01-19 03:52:12 +00:00
enami b07199995f Since the logger(1) puts space between its arguments, there is no need
to pass it explicitly.
2000-01-07 05:53:21 +00:00
enami f7c074aa48 Make sure that warning message starts from the beginning of line. Some
warning recently added didn't care about it.
2000-01-07 05:25:45 +00:00
enami 96e5a9b3d5 Cosmetic changes; folding long lines, using tab instead of spaces where
appropriate and fixing some indentation.
2000-01-07 05:11:43 +00:00
lukem 44ec789012 don't need to background xfs now that it auto-backgrounds itself... 2000-01-04 05:20:51 +00:00
hubertf 7bf20269f9 Add some boot time warnings:
- if ypserv=yes but portmap=no
 - if yppasswdd=yes but ypserv=no
 - if nfs_server=yes but portmap=no

Per discussion on tech-userlevel@netbsd.org.
1999-11-23 15:12:43 +00:00
lukem acc78cad94 accounting should be controllable via $accounting=YES in rc.conf... 1999-11-23 08:05:04 +00:00
fvdl 0f6157b181 Remove update, it's no longer used. 1999-11-15 20:04:50 +00:00
frueauf 1299db6b8b Use checkyesno to check the state of $rc_configured like for any other
variable set in /etc/rc.conf. Pointed out by Erik Bertelsen
<erik@mediator.uni-c.dk> in pr 8522.
1999-10-30 12:35:30 +00:00
darrenr 918f986a0c move old dev_mkdb and "kvm_mkdb /netbsd" up into the section which builds
kvm_mkdb based on machdep.boot_kernel. also failover to "kvm_mkdb /netbsd".
1999-10-05 10:54:27 +00:00
darrenr e463468294 send sysctl machdep errors to /dev/null
merge in patches to implement multiple bootup configurations (look for
/etc/etc.current, /etc/etc.default and friends)
only start up NFS services if either nfs_client or nfs_server is yes.
1999-10-05 10:32:56 +00:00
bouyer eac2fbdb83 Add support for $defcorename 1999-09-28 14:53:17 +00:00
darrenr 50e510e367 If machdep.booted_kernel can be found in sysctl output, feed that name into
kvm_mkdb so that when we boot we always have an upto-date kvm db, allowing
dmesg and friends to run without error when we do "boot netbsd.fun" to test
kernels, etc.
1999-09-16 11:00:44 +00:00
itojun 02972f5985 add sanity check on rtadvd invocation (allowed on IPv6 routers only).
add rc.conf entry for rtsold.
1999-09-03 13:40:15 +00:00
christos 4de82f14e2 check if vi recovery files are regular files before trying to e-mail them.
Stops a denial of service attack where the user can put a named pipe or
any other device that blocks i/o in /var/tmp/vi.recover/recover.*
[from dynamo@ime.net]
1999-08-28 03:39:59 +00:00
christos 6bac342db0 Create temp _motd file in /etc 1999-08-05 20:51:57 +00:00
itojun 94e64335b4 add IPv6 configuration (ip6forwarding, rtsol, route6d and rtadvd).
Right now netsetart does not bother you even if you do not have
"options INET6" in the kernel.
1999-07-03 03:29:29 +00:00
augustss aed7c5dbd9 usbd is dead. 1999-06-30 06:48:05 +00:00
tron 3cc8bf22d2 Configure wscons much earlier so that a virtual console can e.g. be
used for "syslogd" output.
1999-04-13 07:40:53 +00:00
cjs 668efbbcec Change mount_critical_filesystems() so that if given an argument
of "local" it will not mount filesystem types it identifies as
network file systems (currently just nfs). Call the function twice,
before networking starts with arg "local", after networking starts
with arg "network". Remove critfs_require_network as is now redundant.
1999-04-01 03:58:44 +00:00
drochner 4603b8460d start xdm after wscons configuration - the X server might want an own
virtual screen
1999-03-26 13:45:47 +00:00
sommerfe 5a90dbf495 Add dhcrelay startup (allow only if dhcpd isn't started) 1999-03-26 13:10:17 +00:00
oster 9fe0d93bdb Nuke the line 'raidctl -r raid$dev'. a) The '-r' option is now '-i', and
b) with component labels and clean-bits working, this shouldn't be
required at all on each boot!  Thanks to Andrew Gillham for pointing this out.
1999-03-26 01:11:45 +00:00
mellon 8572695519 - Move critical filesystem mounting code into a shell function and put
that in rc.subr.
- Support critfs_require_network rc.conf variable.
1999-03-24 18:59:47 +00:00
perry 835e4d99ed change to new syslog socket. make symlink from old to new location, too. 1999-03-19 00:35:44 +00:00
drochner 1cc109aa7d rc.wscons can take arguments, so we shouldn't simply source it but exec in
a subshell. Being here, add a prototype wscons_flags variable.
1999-03-17 15:49:47 +00:00
drochner 0fc97689ec introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set
1999-03-14 14:04:40 +00:00
frueauf 6f443e73b3 No need to involve awk in the securelevel part, since sysctl has the -n switch.
Pointed out by NAKAJIMA Yoshihiro.
1999-02-07 14:56:01 +00:00
bad cad34284f4 Use peers too when setting the time via ntpdate. 1999-02-07 00:47:08 +00:00
frueauf 1b01f4840e Add missing '' for awk in the securelevel part. 1999-02-06 23:22:31 +00:00
mrg e4603ca8f7 oops, that's -n not -z. pointed out by hubert... 1999-02-01 00:34:25 +00:00
mrg eddf0f4e2c increase the securelevel (using the same rules as before) much earlier in the
boot process.  before cron, sendmail, inetd, etc, are run, but after lkms are
loaded.  this avoids the chances of `@reboot', mail .forwards, remote logins,
etc., happening before the securelevel has been raised.
1999-01-31 08:46:58 +00:00
mrg 97a24ca055 support dmesg=NO and dmesg_flags, and do not cut the old boot messages..they might be useful. fix a typo (rbootd is not rarpd) 1999-01-12 12:42:46 +00:00
jwise f6cc762de0 Enable cron to be turned on and off from rc.conf, like other daemons.
From Soren S. Jorvang <soren@t.dk>, closes his PR bin/5250.
1999-01-12 04:58:37 +00:00
jwise 4b0bbbdbe6 Add $portmap_flags variable, now that portmap has optional flags, and
by default, pass '-l' flag (libwrap logging) by analogy with inetd
1999-01-11 21:04:38 +00:00
abs 8ab9483f37 save a copy of the boot messages. Closes 6398 from msanders@confusion.net 1999-01-06 03:41:44 +00:00
tron 7d0d25360f Add support for RAIDframe configuration as suggested by Eric S. Hvozda
in PR install/6676.
1999-01-04 00:49:36 +00:00