summaryrefslogtreecommitdiffstats
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* Teach mount(8) about a 'late' keyword, which means the file system shoulddes2006-07-122-0/+38
| | | | | | | | | | | | | | | | | | not be mounted unless the -l flag was specified. Add an rc script, mountlate, which basically runs 'mount -a -l'. It runs after DAEMON but before LOGIN. This is useful for things like loopback mounts, because mountcritremote runs before mountd / nfsd (since /usr might be a remote file system), so an attempt to mount a loopback network file system in mountcritremote will fail. Also add a progress message to mountcritlocal, for the sake of symmetry with similar messages in mountcritremote and mountlate. Reviewed by: freebsd-rc MFC after: 3 weeks
* Fix spelling in a comment.stefanf2006-07-091-1/+1
|
* Since INSTALLS_SHLIB has been superseded by USE_LDCONFIG in bsd.port.mk, Iflz2006-06-211-2/+10
| | | | | | | | | | | expect to see quite a few files appearing in libdata/ldconfig directories. This change avoids the screen to be filled with the names of those ldconfig files and replace them by the actual non-default directories they contain. Most of them will be ${PREFIX}/lib so, 'sort -u' will help reducing the output. Approved by: cperciva (implicit) MFC after: 1 week
* Set an example of using load_kld() from rc.subr.yar2006-06-211-7/+5
|
* Quite a number of rc.d scripts try to load kernel modules. Manyyar2006-06-211-0/+39
| | | | | | | | | | of them do that conditionally depending on kldstat. The code is duplicated all over, but bugs can be uniqie. To make the things more consistent, introduce a new rc.subr function, load_kld, which takes care of loading a kernel module conditionally. (Found this lying for a while in my p4 branch for various hacks.)
* o Add missed $start variable in the grep statement back.maxim2006-06-111-1/+1
| | | | | | PR: conf/96658 Submitted by: James Snow MFC after: 1 week
* Update geli_swap_flags, -e is now used to specify the encryption algorithm.brueffer2006-06-071-1/+1
|
* Sync to p4:trhodes2006-06-061-5/+2
| | | | | | | o Add shutdown KEYWORD; o Remove PID check; o Stop auditd with '-t' o General cleanup.
* `flush' is appropriate than `reload'.ume2006-06-062-4/+4
| | | | Requested by: ceri
* Add `reload' which invalidates the cache for every user.ume2006-06-062-0/+4
|
* Use an option form better matching the manual.obrien2006-06-051-1/+1
|
* Since NIS is an RPC based service, add a note that when adjusting accesscsjp2006-06-011-0/+1
| | | | | controls in NIS, similar access controls should be considered for the rpcbind as well.
* Add rc.d/bridge which is invoked when a new interface arrives and canthompsa2006-06-014-1/+100
| | | | | | | 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*).
* Announce all interfaces to devd on attach/detach. This adds a new devctlthompsa2006-06-012-10/+12
| | | | | | | | | | | | | | notification so all interfaces including pseudo are reported. When netif creates the clones at startup devctl_disable has not been turned off yet so the interfaces will not be initialised twice, enforce this by adding an explicit order between rc.d/netif and rc.d/devd. This change allows actions to taken in userland when an interface is cloned and the pseudo interface will be automatically configured if a ifconfig_<int>="" line exists in rc.conf. Reviewed by: brooks No objections on: net
* Add jail_<jname>_exec_afterstart<N> rc.conf variable, where <N> ismatteo2006-05-302-1/+38
| | | | | | | | | | 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)
* style(9)matteo2006-05-301-12/+12
|
* Remove reference to no longer existant /etc/rc.d/pccard.brooks2006-05-301-1/+0
| | | | | PR: conf/98055 Submitted by: thierry herbelot <thierry at herbelot dot com>
* Quote the parameter to sysctl(1), allowing to use whitespaces inglebius2006-05-241-1/+1
| | | | | | | sysctl values. PR: conf/96509 Submitted by: Gregory Bond <gnb itga.com.au>
* Increase the nfs access cache timeout from 2 to 60. The latter is akris2006-05-241-1/+1
| | | | | | | | | | | more appropriate value and is also the default set by the kernel. I could not find a justification of why rc.conf began overriding it back in 1998. This dramatically cuts NFS traffic on e.g. a busy system with NFS root. Reviewed by: mohans MFC After: 2 weeks
* Correct BD_ADDR entry for "Dummy" device in the default hcsecd.conf.emax2006-05-181-1/+1
| | | | | | | Each byte in BD_ADDR should exactly two nibbles, i.e "1:2:3:4:5:6" is NOT valid and "01:02:03:04:05:06" is valid BD_ADDR. MFC after: 1 day
* Remove the require_kld function I just committed and replace with a nicer ↵flz2006-05-183-33/+4
| | | | | | | solution. Reported by: pjd Approved by: cperciva
* Add two new scripts (mdconfig/mdconfig2) to replace old ramdisk{,-own}flz2006-05-184-1/+451
| | | | | | | | | | | | | | | | | | | | 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
* Correctly set moused_$2_enable when moused_nondefault_enable is set to NOmatteo2006-05-171-2/+1
| | | | | PR: conf/92654 MFC after: 3
* Send the pcvt(4) driver off to retirement.phk2006-05-176-275/+1
|
* Move etc/rc.firewall6 to ipfw2+v6, update related rc.d and periodic scripts.mlaier2006-05-126-205/+84
| | | | | Since ipfw2 now does dual-stack, statistics for IPv6 come from the ipfw scripts as well.
* - Change the "jail_" prefix for internal script variables. This fixes anflz2006-05-112-94/+98
| | | | | | | | | | | | | 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
* if we fail to start a jail and jail_foobar_*fs_enable or ↵matteo2006-05-111-0/+4
| | | | | | jail_foobar_mount_enable were set, umount those filesystem before exiting. If we set up an alias for jail's IP, remove that alias before exiting. MFC after: 2 weeks
* Add a /media to FreeBSD. /media is a directory designed to containmarcus2006-05-101-0/+2
| | | | | | | | | | | | subdirectories that will be used for removable media mount points (i.e. mount points for CDs, floppy disks, USB drives, etc.). While the primary purpose of /media is to provide a location for HAL (http://www.freedesktop.org/wiki/Software_2fhal) to mount volumes, it could be used by any application that needs to manage removable media volumes. Discussed on: arch@ Approved by: mux MFC after: 1 week
* if a jail fails to start, don't add its jid to /var/run and print a message ↵matteo2006-05-091-5/+10
| | | | | | | with the error. PR: conf/97024 MFC after: 1 week
* - Fix quoting.flz2006-05-081-2/+2
| | | | | Reported by: Dirk Engling <erdgeist@erdgeist.org> Pointyhat to: self
* - Check for some mandatory variables.flz2006-05-071-0/+11
| | | | | Approved by: cperciva (mentor) MFC after: 1 week
* Install /etc/nsswitch.conf statically rather than generating it atume2006-05-033-66/+17
| | | | | | | | boot. Autogeneration of nsswitch.conf doesn't makes sense in 7.0 since it's not permitted to upgrade from a pre-nss release without passing through an intermediate release. Suggested by: brooks
* Update host.conf every time nsswitch.conf changes, instead of just creatingdes2006-05-011-1/+3
| | | | | | | it if it does not exist. Submitted by: Rostislav Krasny <rosti.bsd@gmail.com> MFC after: 2 weeks
* Oops, services should be compat by default for backward compatibility.ume2006-04-291-1/+1
|
* Add newly supported databases such as services, protocols and rpcume2006-04-291-1/+5
| | | | into generated nsswitch.conf.
* - Extend the nsswitch to support Services, Protocols and Rpcume2006-04-287-0/+93
| | | | | | | | databases. - Make nsswitch support caching. Submitted by: Michael Bushkov <bushman__at__rsu.ru> Sponsored by: Google Summer of Code 2005
* Remove last vestiges of sab(4).marius2006-04-251-3/+0
|
* Correct two typos in comments.brueffer2006-04-221-2/+2
|
* Clean up, comment out non-base utilities, fix up comments.trhodes2006-04-221-34/+14
| | | | Prodded by: hrs
* After some discussion we believe that having SERVERS to REQUIRE:delphij2006-04-201-1/+1
| | | | | | | ldconfig would provide necessary protection for named as well, so remove the dependency here. Approved by: flz
* Make ldconfig as SERVER dependency. This makes it possibledelphij2006-04-191-1/+1
| | | | | | | | for some early starting services from the ports collection to have their shared objects available before start. Reviewed by: freebsd-rc (dougb, brooks) MFC After: 3 days
* - Move _rc_subr_loaded=: at the end of the file, to be consistent with NetBSD.flz2006-04-181-5/+8
| | | | | | | | | | | | - Sync with latest version from NetBSD. 'In order to handle some perl scripts running as daemons, add a pattern which also matches "`basename $interpreter`: $command" in the ps listing.' Approved by: cperciva (mentor) Obtained from: NetBSD MFC after: 1 week
* - Add new ntpd_config variable so that people can override it in rc.conf.flz2006-04-182-3/+8
| | | | | | | | - Add default value in /etc/defaults/rc.conf. - Add documentation bits to rc.conf(5). Approved by: cperciva (mentor) MFC after: 1 week
* Add ldconfig to the list of requirements for named, needed to use bindflz2006-04-181-1/+1
| | | | | | | | | | from ports. The effect is that ldconfig is now started right after mountcritremote. Everything else is left unchanged. PR: conf/68916 Submitted by: JD Bronson <jd@aurora.org> Approved by: cperciva (mentor) MFC after: 1 week
* Spell synchronous with required silent 'h'.brooks2006-04-132-2/+2
| | | | | Reported by: ru, ceri Pointy hat: brooks
* Add missing _ to $_punct.brooks2006-04-131-1/+1
| | | | Submitted by: Dmitry Pryanishnikov <dmitry at atlantis.dp.ua>
* Use ps true power instead of tr/tail which aren't available early enough.flz2006-04-131-1/+1
| | | | | | | PR: conf/95654 Submitted by: Rong-En Fan <rafan@infor.org> Noticed/Fix by: many people on freebsd-current@ Approved by: cperciva (mentor)
* Commit the various network interface configutation updates I've beenbrooks2006-04-132-22/+81
| | | | | | | | | | | | | | | | 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]
* Remove an inappropriate comment which is put into generatedume2006-04-121-1/+1
| | | | | | host.conf. Someone may want to edit it later. Requested by: Rostislav Krasny <rosti.bsd__at__gmail.com>
* Add autologin entries (al.NNN) for higher console speeds.des2006-04-111-0/+10
| | | | MFC after: 2 weeks
OpenPOWER on IntegriCloud