summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
Commit message (Collapse)AuthorAgeFilesLines
* When stopping powerd, set the CPU frequency back to its maximum valuecperciva2006-08-271-0/+7
| | | | | | | (i.e., what it was almost certainly at before powerd was started). Submitted by: R.B. Riddick MFC after: 3 days
* - Add ypserv to the REQUIRE list.flz2006-08-221-1/+1
| | | | | | | Reported by: David Thompson <dat1965@yahoo.com> Discussed on: -rc (brooks) Approved by: cperciva (mentor, implicit) MFC after: 3 days
* Backout this commit since it breaks startup and some scripts inflz2006-08-221-17/+16
| | | | | | | | | | | | | | | | | certain conditions. I haven't been able to find a better solution yet: - Set a two read-only variables (${prefix} and ${etcdir}). This is especially useful when using /etc/rc.d scripts with third-party software installed from ports. - Fix rc.d/sshd to work with openssh from ports using ${etcdir} instead of hardcoded /etc. - Reflect prefix/etcdir changes in rc.subr.8. src/etc/rc.d/sshd: rev 1.9 -> 1.10 src/etc/rc.subr: rev 1.51 -> 1.52 src/share/man/man8/rc.subr.8: rev 1.11 -> 1.12 Approved by: cperciva (mentor)
* - Remove ramdisk rc.d scripts since they've been replaced by mdconfig{,2}.flz2006-08-223-125/+1
| | | | | | - Update ObsoleteFiles.inc. Approved by: cperciva (mentor)
* Add a missing quotebrian2006-08-171-1/+1
| | | | Spotted by: ru
* Add a -p switch to dhclient. The switch tells dhclient to persistbrian2006-08-171-1/+12
| | | | | | | | | | despite the interface link status. Add dhclient_flags_iface and background_dhclient_iface rc.conf options. (where iface is a specific interface). These can be used to give interface specific flags to dhclient. Reviewed by: brooks@
* Forgot to add mountlate to the Makefile.des2006-08-041-1/+1
|
* This script should probably have an enabling variable since it can producemckay2006-07-301-2/+4
| | | | | surprising results. For now, at least make it safe to boot the default kernel when /boot/kernel is already a symlink.
* De-uglify messages from the ipfw script.yar2006-07-251-4/+2
|
* Use more rc.subr(8) features.yar2006-07-251-22/+16
| | | | | Skip useless work when ${natd_interface} is unset. Double quote user-supplied vars unless there is a reason not to.
* Don't load geom_md.ko if there is no need to.pjd2006-07-252-0/+10
|
* Since Alpha support isn't in HEAD anymore, remove Alpha-specificyar2006-07-211-25/+0
| | | | rc.conf(5) knobs, too: osf1_enable, unaligned_print.
* - Remove hardcoded /etc/ntp.conf configuration file from ntpdate rc.d scriptflz2006-07-201-2/+2
| | | | | | | | | | and replace it with a new ntpdate_config variable. - Document it in defaults/rc.conf and rc.conf.5. - Document ntpdate_hosts in defaults/rc.conf. Requested by: Chris Timmons <cwt@networks.cwu.edu> Approved by: cperciva (mentor, implicit) MFC after: 1 week
* 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
|
* 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
|
* Add rc.d/bridge which is invoked when a new interface arrives and canthompsa2006-06-013-1/+97
| | | | | | | 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-011-2/+2
| | | | | | | | | | | | | | 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-301-1/+35
| | | | | | | | | | 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
|
* 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>
* Remove the require_kld function I just committed and replace with a nicer ↵flz2006-05-182-4/+4
| | | | | | | solution. Reported by: pjd Approved by: cperciva
* Add two new scripts (mdconfig/mdconfig2) to replace old ramdisk{,-own}flz2006-05-183-1/+422
| | | | | | | | | | | | | | | | | | | | 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-174-248/+1
|
* Move etc/rc.firewall6 to ipfw2+v6, update related rc.d and periodic scripts.mlaier2006-05-121-3/+3
| | | | | 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-111-93/+93
| | | | | | | | | | | | | 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
* 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-031-64/+0
| | | | | | | | 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-283-0/+64
| | | | | | | | databases. - Make nsswitch support caching. Submitted by: Michael Bushkov <bushman__at__rsu.ru> Sponsored by: Google Summer of Code 2005
* 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
* - Add new ntpd_config variable so that people can override it in rc.conf.flz2006-04-181-3/+7
| | | | | | | | - 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
* 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>
* - Fix rc.d/sshd test on kern.random.sys.seeded.flz2006-04-111-1/+1
| | | | | | | PR: conf/94377 Submitted by: dwhite Approved by: cperciva (mentor) MFC after: 1 week
* - Fix amd startup when amd is installed from ports.flz2006-04-111-1/+1
| | | | | | | | | - Add the according amd_program default value in defaults. PR: conf/82738 Submitted by: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp> Approved by: cperciva (mentor) MFC after: 3 days
* - Set a two read-only variables (${prefix} and ${etcdir}). This isflz2006-04-111-16/+17
| | | | | | | | | | | especially useful when using /etc/rc.d scripts with third-party software installed from ports. - Fix rc.d/sshd to work with openssh from ports using ${etcdir} instead of hardcoded /etc. Reviewed by: brooks Approved by: cperciva (mentor) MFC after: 1 week
* - Add following global jail options, used if no jail-specific options areflz2006-04-081-9/+17
| | | | | | | | | | | | | | | | | | 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
OpenPOWER on IntegriCloud