Commit Graph

835 Commits

Author SHA1 Message Date
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
Yaroslav Tykhiy
24c307eac7 Add an rc.d script for stand-alone ftpd.
Document the script's controls on the rc.conf(5)
manpage and touch its Dd.

PR:		conf/90893
MFC after:	5 days
2006-01-21 18:08:16 +00:00
Ceri Davies
81adede9a3 It's perfectly valid to run rpc_statd and rpc_lockd as an NFS client, so
update the documentation to reflect that.

PR:		docs/86090
Submitted by:	Lowell Gilbert <freebsd-bugs-local at be-well dot ilk point org>
MFC after:	3 days
MFC to:		RELENG_5, RELENG_6
2006-01-21 13:52:45 +00:00
Doug Barton
b0c77a9ef1 Mention that NETWORKING is probably the right value for
early_late_divider in a jail.

Add an explcit Xr for jail(8)
2006-01-13 01:09:55 +00:00
Florent Thoumie
a5b2ea4f98 Bump .Dd date after latest changes.
Approved by:	simon
2006-01-08 13:20:57 +00:00
Doug Barton
dfdae5534f Add a mechanism to include files added by ports which contain
the names of directories to include in the base ldconfig script.
This will eliminate the need for each port to install its own
boot script which does nothing but ldocnfig a given directory.

This code was developed by flz (ports committer), discussed on
freebsd-rc@, and modified slightly by me.

Submitted by:	flz
Reviewed by:	brooks
2006-01-08 10:15:31 +00:00
Ralf S. Engelschall
66c6b32654 Fix semantics in the documentation of the "jail_socket_unixiproute_only"
variable ("YES" vs. "NO") and be more precise and intuitive on what is
actually allowed/restricted by this variable ("UNIX/IP/route sockets"
vs. "TCP/IP protocols").

MFC after: 3 days
2005-12-29 13:39:46 +00:00
Doug Barton
aa5affaf3b Brooks pointed out a potential problem with disabling the X cleaning
by default, so add a new knob that is on by default, and check that
knob in start_precmd so that it can run even if cleaning /tmp is
not enabled. This has the advantage of not violating POLA, while
still allowing the user to disable this behavior if they wish (for
example on a server that will never run X).
2005-12-20 20:36:48 +00:00
Doug Barton
ea871df08c Clear up problems with /etc/rc.d/{abi|cleanvar|cleartmp} brought
to light by the PR.  Specifically, convert these three scripts
into good rc.d citizens, making sure that their functionality
is preserved, but the rc.d framework rules are not broken.

Add support for cleanvar as a regular rc.d script in the
default rc.conf, and document this in the man page.

Add a descriptive comment to rc.conf that regarding the
three emulation/compatibility services provided by abi
so users will not be confused by these services not having
their own startup scripts.

PR:		conf/84574
Submitted by:	Alexander Botero-Lowry
2005-12-19 10:57:00 +00:00
Marcel Moolenaar
5bc7a7305b Update the date. Forgotten in previous commit. 2005-12-19 01:51:17 +00:00
Marcel Moolenaar
757686b115 Make our ELF64 type definitions match standards. In particular this
means:
o  Remove Elf64_Quarter,
o  Redefine Elf64_Half to be 16-bit,
o  Redefine Elf64_Word to be 32-bit,
o  Add Elf64_Xword and Elf64_Sxword for 64-bit entities,
o  Use Elf_Size in MI code to abstract the difference between
   Elf32_Word and Elf64_Word.
o  Add Elf_Ssize as the signed counterpart of Elf_Size.

MFC after: 2 weeks
2005-12-18 04:52:37 +00:00
Ian Dowse
2e46a159cc Remove usbd(8) and all references to it. It is no longer necessary
since devd(8) now provides the same functionality.

Submitted by:	Anish Mistry
2005-12-15 01:04:51 +00:00
Doug Barton
57e561c083 Remove rcconf.sh from /etc/rc.d, and instead load the configuration
as part of rc. Doing this, and the sourcing of rc.subr after we have
determined if we are booting diskless (and correspondingly run
rc.initdiskless if necessary) are safe, and actually allow fewer files
to be needed on the diskless box. This also allows variables from
the configuration to be available to rc itself, such as ...

Add a variable to rc.conf, early_late_divider, which designates the
script which separates the early and late stages of the boot process.
Default this to mountcritlocal, and add text to etc/defaults/rc.conf,
rc.conf(5) and diskless(8) which describes how and why one might want
to change this.

Reviewed by:	brooks
2005-12-10 20:21:46 +00:00
Ruslan Ermilov
f99d3b7b53 config.5 was repocopied from share/man/man5/ to usr.sbin/config/.
Repocopied by:	peter
2005-12-09 06:46:41 +00:00
David Xu
afcf37b05c Fix markup. 2005-12-05 09:31:23 +00:00