Commit Graph

849 Commits

Author SHA1 Message Date
Andrew Thompson
55ba40bfe2 Add rc.d/bridge which is invoked when a new interface arrives and can
automaticly add it to an Ethernet bridge. This is intended for applications
such as qemu, vmware, openvpn, ... which open tap interfaces and need them
bridged with the hosts network adapter, the user can set up a glob for
interfaces to be automatically added (eg tap*).
2006-06-01 11:01:54 +00:00
Matteo Riondato
ce5c66f0b2 Add jail_<jname>_exec_afterstart<N> rc.conf variable, where <N> is
1,2 and so on.
It specifies the command to be run as Nth after jail startup.

sh(1)-fu by: Dario Freni
PR: 	conf/97697
MFC after: 2 weeks
Reviewed by: ru@ (man page)
2006-05-30 16:20:48 +00:00
Maxim Konovalov
30550483f3 o Sort .Xrs, touch .Dd. 2006-05-20 06:58:46 +00:00
Hajimu UMEMOTO
a8cceff8e8 Add description how to use caching.
Submitted by:	Michael Bushkov <bushman__at__rsu.ru>
2006-05-20 03:29:09 +00:00
Craig Rodrigues
58f05c01d4 Remove reference to mount_procfs, which is no longer used by mount(8).
Add an example using "mount -t procfs".
2006-05-19 00:23:29 +00:00
Craig Rodrigues
7f70be18b4 Remove reference to mount_linprocfs, which is no longer used by mount(8).
Add an example using "mount -t linprocfs".
2006-05-19 00:22:45 +00:00
Florent Thoumie
01b19d7852 Add two new scripts (mdconfig/mdconfig2) to replace old ramdisk{,-own}
scripts. These scripts handle vnode backed md(4) devices.

Old ramdisk{,-own} scripts will stay a bit in CVS to allow some time for
migration since variable names have changed (ramdisk_* -> mdconfig_*).

Two new variables have been introduced to be able to populate the md(4)
device once it has been mounted (mdconfig_*_files and mdconfig_*_cmd).

Use should be as easy as:

mdconfig_md0="-t malloc -s 10m"
mdconfig_md1="-t vnode -f /var/foo.img"

See rc.conf(5) for more information and description of the additional
variables.

Approved by:	cperciva
2006-05-18 15:29:27 +00:00
Craig Rodrigues
5935d6b1fd Remove reference to mount_devfs(8), since mount(8) no longer
invokes this mount_devfs when mounting devfs file systems.
2006-05-18 13:37:13 +00:00
Craig Rodrigues
89419b97cf Add a man page for ext2fs. 2006-05-17 23:25:52 +00:00
Poul-Henning Kamp
f6ce2a64f7 Send the pcvt(4) driver off to retirement. 2006-05-17 09:33:15 +00:00
Craig Rodrigues
5815047b57 Add reiserfs.5 man page to build. 2006-05-16 22:08:38 +00:00
Craig Rodrigues
e94a12b117 Add man page for ReiserFS.
Reviewed by:	dumbbell
2006-05-16 22:06:47 +00:00
Wilko Bulte
5471115159 Remove reference to Alpha 2006-05-15 20:55:36 +00:00
Maxime Henrion
ace2d8c00b Refer to csup in the make.conf(5) manpage.
Insta-MFC to follow.

Reminded by:	ru (some time ago)
2006-05-15 14:08:41 +00:00
Max Laier
9277da52e1 Move etc/rc.firewall6 to ipfw2+v6, update related rc.d and periodic scripts.
Since ipfw2 now does dual-stack, statistics for IPv6 come from the ipfw
scripts as well.
2006-05-12 19:17:34 +00:00
Doug Ambrisko
0b1c233427 Remove the dependency on procfs since it isn't used.
Noticed by:	des
2006-05-11 15:27:58 +00:00
Florent Thoumie
b246e9314d - Change the "jail_" prefix for internal script variables. This fixes an
issue where some global jail_* variables were overriden in the script. [1]
- Change "jid" to "jname" in rc.conf(5), since it's more a jail name than a
jail id. [1]
- Update examples and comments in defaults/rc.conf to advertise new
variables and the fact that some of the jail-specific variables may be made
jail-global. [2]

Reported by:	pjd [1], clsung [2]
Approved by:	cperciva
X-MFC after:	i got sufficient testing from people using rc.d/jail
2006-05-11 14:23:43 +00:00
Doug Ambrisko
32397ce071 Add in linsysfs. A linux 2.6 like sys filesystem to pacify the Linux
LSI MegaRAID SAS utility.

Sponsored by:		IronPort Systems
Man page help from:	brueffer
2006-05-09 22:27:01 +00:00
Florent Thoumie
455c5d38be - Add new ntpd_config variable so that people can override it in rc.conf.
- Add default value in /etc/defaults/rc.conf.
- Add documentation bits to rc.conf(5).

Approved by:	cperciva (mentor)
MFC after:	1 week
2006-04-18 15:02:24 +00:00
Brooks Davis
c1ba2105e8 Spell synchronous with required silent 'h'.
Reported by:	ru, ceri
Pointy hat:	brooks
2006-04-13 18:34:14 +00:00
Ruslan Ermilov
73e78194bf Regen. 2006-04-13 10:38:43 +00:00
Brooks Davis
c4af136d49 Commit the various network interface configutation updates I've been
working on.
  1) Make it possible to configure interfaces with certain characters in
     their names that aren't valid in shell variables.  Currently supported
     characters are ".-/+".  They are converted into '_' characters.
  2) Replace nearly all eval statements in network.subr with a new
     function get_if_var which substitues an interface name (after the
     translations above) for "IF" in a variable name.
  3) Fix list_net_interfaces() in the nodhcp case.
  4) Allow the administrator to specify if dhclient should be started
     when /etc/rc.d/netif configures the interface or only by devd.
     This can be set on both a per interface and system wide basis.

PR:	conf/88974 [1,2], conf/92433 [1,2]
2006-04-13 06:50:46 +00:00
Florent Thoumie
69beb663f5 - Add following global jail options, used if no jail-specific options are
set:
 * jail_mount_enable
 * jail_devfs_ruleset
 * jail_devfs_enable
 * jail_fdescfs_enable
 * jail_procfs_enable
 * jail_fstab
 * jail_flags
- Add a jail_interface / jail_<jid>_interface option. An ip alias will be
created (jail_<jid>_ip) on jail_interface or jail_<jid>_interface if set.
This is not a mandatory option.
- Document all missing jail_* options in rc.conf(5).

Approved by:	cperciva (mentor)
MFC after:	2 weeks
2006-04-08 12:15:36 +00:00
Poul-Henning Kamp
c82053233c Have WITHOUT_BIND_MTREE imply WITHOUT_BIND_ETC 2006-04-01 18:11:42 +00:00
Pav Lucistnik
e8c932f055 - Be explicit about libmap32.conf only working on amd64
Requested by:	ru
2006-03-27 14:37:54 +00:00
Pav Lucistnik
e351e2aada - Document libmap32.conf
MFC after:	1 week
2006-03-27 00:53:11 +00:00
Ruslan Ermilov
862aa05f64 Remove mentions of old compat options from here; equivalents are
now provided in src.conf(5).
2006-03-21 09:49:05 +00:00
Ruslan Ermilov
fa07cb9cd3 Install the autogenerated src.conf(5) manpage. 2006-03-21 09:10:35 +00:00
Ruslan Ermilov
e1fe3dba5c Reimplementation of world/kernel build options. For details, see:
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by:	imp, jhb, kris, phk, ru (all bugs are mine)
2006-03-17 18:54:44 +00:00
Jesus R. Camou
2b3efff32a Add link:
rc.conf.local.5->rc.conf.5.

PR:		docs/87698
Reported by:	Marian Cerny <jojo@matfyz.cz>
Submitted by:	Daniel Gerzo <danger@rulez.sk>
Approved by:	trhodes (mentor)
MFC after:	3 days
2006-03-14 17:05:00 +00:00
Matteo Riondato
d98c012541 Fix spelling error
MFC after:	1 day
2006-03-08 14:10:38 +00:00
Christian Brueffer
ca68db7a1a Actually bump the date to the commit-date for the last commit. 2006-03-02 14:55:07 +00:00
Christian Brueffer
2325bde9c9 Document the graid3(8), gstripe(8) and gconcat(8) periodic scripts. 2006-03-02 14:48:17 +00:00
Hajimu UMEMOTO
3d9c7490ba Mention NO_NLS_CATALOGS.
Suggested by:	Niclas Zeising <lothrandil__at__n00b.apagnu.se>
2006-02-22 09:47:54 +00:00
Sam Leffler
65986ff98d NO_WPA_SUPPLICANT_EAPOL is a bool, not a str 2006-02-21 17:15:24 +00:00
Christian Brueffer
d00cc66129 Xref chkgrp(8).
PR:		93529
Submitted by:	Daniel Gerzo <danger@rulez.sk>
MFC after:	3 days
2006-02-18 16:48:56 +00:00
Sam Leffler
b3babfdc25 Change default build of wpa_supplicant to include EAPOL support;
ENABLE_WPA_SUPPLICANT_EAPOL is no more, now use NO_WPA_SUPPLICANT_EAPOL
to build with only WPA-PSK support.

Reviewed by:	ru, bsdimp (basic approach)
MFC after:	1 week
2006-02-14 23:51:21 +00:00
Warner Losh
1ee0794a12 Fix leakage of uncommitted build changes 2006-02-13 21:25:01 +00:00
Matteo Riondato
82d95a96b0 Add a default ldconfig32_paths entry in default/rc.conf for 32-bit compatability shared libraries.
It is used by the ldconfig rc.d scripts.
Document this variable in the man page

PR:		amd64/91571
Approved by:	philip (mentor)
MFC after:	3
2006-02-13 21:10:03 +00:00
Warner Losh
3b77fdbf73 Remove pccard variables which are no longer supported after the move
to NEWCARD.
2006-02-13 20:10:34 +00:00
Doug Barton
196b6a193e Overhaul the named boot script:
1. Remove a now-spurious NetBSD CVS Id, as we are no longer synching work
2. Remove a now-spurious BEFORE, since ntpdate now REQUIRE's named
3. Replace the call to set rcvar with what that function would output,
and generally reduce indirection ($name -> named) since it's highly
unlikely the name of the named process or service will change any time soon.
4. Resort the order the variables at the top of the file to a more
traditional format, and remove a spurious required_dirs from the top, as it
works better after load_rc_config.
5. We do not want the default reload method with named, so define a simple
but appropriate substitute using rndc. If I were writing this script for
the first time I would not include this at all, since it's preferable to
control a running daemon with rndc to start with, but given that this is
already here, let's do it right. I hope that future generations will
however resist the tempation to add reconfig to extra_commands.
6. By the same token, we want to use rndc to shut down named, but given
that by defining a stop function we lose the "find the process by its
pid file in an emergency" goodness of rc.subr, try to do something useful
in the event that rndc is not available, and keep the user informed.
7. Replace some "test -f" with "test -r" to handle the unlikely event
that the relevant file exists, but is unreadable.
8. Twiddle whitespace in a few areas, remove a spurious blank line,
a bogus double space, and try to do better indenting.
9. Improve generation of the rndc.key file significantly
a. If for some reason a user has an rndc.conf file, assume that they
did that on purpose, and hence know what they are doing, so leave them alone.
b. Introduce a named_uid configuration variable so that the user which owns
the rndc.key file and the user named runs as always match, and is more
easily configurable. This should dramatically reduce problems with rndc.
c. Also test that the rndc.key file size is greater than zero, rather than
simply that the file exists. I have seen at least one user report this exact
problem, and although neither of us is sure where the empty file came from,
the fix is simple, so include it.
d. Rather than try to create an rndc.key file in both /etc/namedb and the
chroot'ed /etc/namedb, assume that they are be the same (which they should
be), and only create the file in the chroot'ed version of the directory.
This partially addresses the problem described in conf/73929, but I have
not yet finished thinking about the PREFIX issue that PR also raises.

As a result of introducing the named_uid knob, the default named_flags
are now empty.

Update defaults/rc.conf and rc.conf(5) to reflect these changes.
2006-02-13 08:45:51 +00:00
Christian S.J. Peron
54381950da Document NO_AUDIT make variable.
Obtained from:	TrustedBSD Project
2006-02-12 17:06:14 +00:00
Christian Brueffer
bd81a3a557 Correct references to ipnat(8).
MFC after:	3 days
2006-02-10 15:23:07 +00:00
Christian Brueffer
d54a903a81 Correct the meaning of the NO_SHARED knob.
MFC after:	3 days
2006-02-10 14:19:07 +00:00
Florent Thoumie
b03bfd3552 - Add a startup script for hostapd.
- Document associated variable in rc.conf(5).

Approved by:	dougb
MFC after:	1 week
2006-02-03 01:35:36 +00:00
Joel Dahl
fbf9b468d5 Expand contractions. 2006-02-01 14:33:14 +00:00
Christian Brueffer
21456d2f1b Document the daily_status_ata_raid_enable and daily_status_gmirror_enable
variables.
2006-01-31 19:14:28 +00:00
Giorgos Keramidas
2882d87e08 Add more details about enabling a custom ruleset for /dev in `rc.conf',
and add ruleset labels/numbering to the custom ruleset example.

PR:		docs/90362
Submitted by:	Roland Smith <rsmith@xs4all.nl>
MFC after:	3 days
2006-01-30 13:28:28 +00:00
Yaroslav Tykhiy
44255c5519 Add a couple of obviously missing xrefs to SEE ALSO:
ftpd(8), geli(8).
2006-01-29 13:35:35 +00:00
Joseph Koshy
3d425b66e4 Note that options are set using sh(1) syntax.
MFC after:	3 days
2006-01-27 02:46:08 +00:00