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
tsutsui
63156ee6a4
/etc/rc.d/mountall should obviously REQUIRE mountcritremote, and
...
may also REQUIRE named and ypbind for NFS hostname in fstab(5).
2008-12-01 14:47:14 +00:00
tsutsui
3381903ec0
Add "bootconf" to REQUIRE: lines which had beforenetlkm
...
since removed beforenetlkm required bootconf.
2008-11-22 20:23:33 +00:00
abs
845c5d6f11
Add a 'reload' option - from Peter Bex
2008-11-17 11:34:04 +00:00
ad
0efea177e3
Remove LKMs and switch to the module framework, pass 1.
...
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
christos
6536944397
eval arguments one more time so that quoting works.
2008-10-11 17:28:03 +00:00
apb
9b7231008d
Move default route configuration after interface alias address
...
configuration, in case people have default routes over aliased
addresses.
2008-09-26 10:31:46 +00:00
apb
c44f01fe5d
remove an unecessary "eval"
2008-09-20 14:22:57 +00:00
apb
94f952dfe5
* Allow multiple commands in $ifconfig_xxN variables in rc.conf(5).
...
This may be done either by embedding newlines in the value,
or by using semicolons to represent line breaks (but not both at once).
* Allow shell quoting insode $ifconfig_xxN variables or /etc/ifconfig.xxN
files. This allows something like ifconfig_wi0="ssid 'my network'; dhcp"
2008-09-20 12:12:38 +00:00
reed
2ae533f9b5
Use absolute path for various /sbin tools.
...
This is consistent with several other rc.d scripts
and fixes problem with /sbin not in PATH.
(Tested several times for over three weeks, but not all
parts of this code were used by me.)
2008-07-24 19:48:19 +00:00
yamt
fff57c5525
merge yamt-pf42 branch.
...
(import newer pf from OpenBSD 4.2)
ok'ed by peter@. requested by core@
2008-06-18 09:06:25 +00:00
joerg
32455b2087
Allow per-interface DHCP configuration using dhcpcd via
...
ifconfig_xxN=dhcp or a dhcp line in /etc/ifconfig.xxN.
2008-05-29 15:38:35 +00:00
plunky
486e4624e5
some changes to serial bluetooth host controller interfaces
...
btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD
make btattach(8) a single-use tool for less complexity
device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.
btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
2008-04-15 11:17:47 +00:00
tron
634457e76e
Print out a message explaining why the system is rebooting if the root
...
filesystem is modified by fsck(8).
2008-03-02 21:31:30 +00:00
tron
5acd6cb052
Don't try to shutdown amd(8) gracefully. It seems to cause problems for
...
more people than the old (also broken) behavior. This fixes PR bin/36506
and PR bin/38103.
2008-02-25 22:12:42 +00:00
christos
3a24c02f26
cleanup fsck error handling:
...
1. explain what each error means
2. remove 130 (128 + 2) which was presumably there because fsck_msdos did
not handle SIGINT properly
2008-02-24 01:05:35 +00:00
reed
f8fd203aa2
Add comment to point to manual page for details.
2008-01-31 15:21:32 +00:00
lukem
114e456e17
Ensure kdc starts after syslogd and ntpdate.
2008-01-16 23:58:26 +00:00
mjf
d4a648c345
Implement a new magic string for magic symlinks, @ruid, which exapnds to the
...
real user id of the process and use this magic string for per-user tmp.
This should fix PR/35687
Kernel parts reviewed by wrstuden@
2007-12-04 22:09:01 +00:00