summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
Commit message (Collapse)AuthorAgeFilesLines
* pkill(1) and pgrep(1) have been moved to /bin so that they areyar2007-02-151-3/+3
| | | | available to rc.d scripts early in the boot sequence.
* Don't be paranoid about hostname(1) and order the things logically.yar2007-02-151-1/+1
| | | | Pointed out by: ceri
* Don't nag about unset $hostname if DHCP is in use.yar2007-02-151-1/+6
| | | | Pointed out by: ceri
* Handle the case when the admin forgot to set $hostname,yar2007-02-101-1/+10
| | | | | which can happen in new installations: advise to set the variable and refer to rc.conf(5).
* Add support for EtherChannel configuration to rc startup scripts.flz2007-02-091-0/+3
| | | | | | | | | | Note: This also deprecates "NO" as a way to specify an empty list of interfaces for gif_interfaces. PR: conf/104884 Submitted by: nork Harassed by: brd Discussed with: brooks, dougb
* Add the following knobs for quotas if they are enabled:mpp2007-01-201-3/+3
| | | | | | quotaon_flags - flags for the quotaon command quotaoff_flags - flags for the quotaoff command quotacheck_flags - flags for the quotacheck command
* Fix jail rc.d script privilege escalation via symlink attack againstsimon2007-01-111-12/+116
| | | | | | /var/log/console.log and mount points. Security: FreeBSD-SA-07:01.jail
* Re-work Cx handling to be per-cpu and asymmetrical, fixing support onnjl2007-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modern dual-core systems as well. - Parse the _CST packages for each cpu and track all the states individually, on a per-cpu basis. - Revert to generic FADT/P_BLK based Cx control if the _CST package is not present on all cpus. In that case, the new driver will still support per-cpu Cx state handling. The driver will determine the highest Cx level that can be supported by all the cpus and configure the available Cx state based on that. - Fixed the case where multiple cpus in the system share the same registers for Cx state handling. To do that, added a new flag parameter to the acpi_PkgGas and acpi_bus_alloc_gas functions that enable the caller to add the RF_SHAREABLE flag. This flag could also be useful to other callers (acpi_throttle?) in the tree but this change is not yet made. - For Core Duo cpus, both cores seems to be taken out of C3 state when any one of the cores need to transition out. This broke the short sleep detection logic. It is disabled now if there is more than one cpu in the system for now as it fixed it in my case. This quirk may need to be re-enabled later differently. - Added support to control cx_lowest on a per-cpu basis. There is still a generic cx_lowest to enable changing cx_lowest for all cpus with a single sysctl and for ease of use. Sample output for the new sysctl: dev.cpu.0.cx_supported: C1/1 C2/1 C3/57 dev.cpu.0.cx_lowest: C3 dev.cpu.0.cx_usage: 0.00% 43.16% 56.83% dev.cpu.1.cx_supported: C1/1 C2/1 C3/57 dev.cpu.1.cx_lowest: C3 dev.cpu.1.cx_usage: 0.00% 45.65% 54.34% hw.acpi.cpu.cx_lowest: C3 This work was done by Stephane E. Potvin with some simple reworking by myself. Thank you. Submitted by: Stephane E. Potvin <sepotvin / videotron.ca> MFC after: 2 weeks
* Jail_ip and jail_interface local variables were renamed to _ip and _interfaceflz2007-01-021-2/+2
| | | | | | | | in a previous commit to avoid namespace collisions, unfortunately I missed two of them. This leads to the ip alias being incorrectly removed in some cases when using the stop command. Reported by: Philipp Wuensche <cryx-freebsd@h3q.com>
* Use $required_modules wherever suitable. Use load_kld() in specialyar2006-12-3121-234/+43
| | | | cases. So we get rid of quite a few lines of duplicated code.
* Fix a typo in a warning message.yar2006-12-311-1/+1
|
* Eliminate global symbols starting with an underscore from rc.dyar2006-12-3020-41/+74
| | | | | | | | | scripts, except for mdconfig* and jail. Such symbols are reserved for the rc.subr internals. Most scripts can be fixed by just declaring _foo symbols as local: few scripts actually need them to be global. Discussed with: dougb in freebsd-rc
* Add "nojail" keyword to prevent spurious error messages.hrs2006-12-291-0/+1
| | | | | Spotted by: Keve Nagy PR: conf/107083
* Syscons cannot be stopped, so provide a no-op stop method.yar2006-12-201-0/+1
| | | | | | | The default stop method from rc.subr isn't suited for this case and produces a bogus warning: "syscons not running". Suggested by: matteo
* Improve rc.d conformance:yar2006-12-201-3/+3
| | | | | - don't play a needless trick with prestart, just use start method; - provide no-op stop method so that we don't get bogus "abi not running" error.
* Add a link-local address to the lo0 even when ipv6_enable="NO".hrs2006-12-081-0/+5
| | | | | | | | A kernel with INET6 always has ::1 on lo0, so in the case of ipv6_enable="NO" the lo0 can have ::1 with no link-local address. This is a violation of the IPv6 specification. As a workaround for this situation, fe80::1 is added in rc.d/auto_linklocal when lo0 has no link-local address. This should not be harmful for IPv4-only users.
* Ensure that the load of rules into the alternate ruleset worked beforeceri2006-11-111-0/+6
| | | | | | | | | | loading them into the live one too. PR: conf/97311 Submitted by: David Bushong Reviewed by: silence on rc@ Approved by: ru (mentor) MFC after: 10 days
* Re-sync'ing pf rules in post command as we already did for ipfilter.avatar2006-10-261-1/+2
| | | | | | | | With this patch, pf rules with dynamically created devices such like tun0 works without further intervention. Reviewed by: mlaier MFC after: 3 days
* Suppress a spurious warning message when a kernel without INET6 ishrs2006-10-221-1/+1
| | | | | | | | used. Spotted by: ru Reviewed by: ume MFC after: 3 days
* Add 'reload' to the list of available commands for the amd rc.d script.flz2006-10-181-0/+1
| | | | | | PR: conf/104507 Submitted by: Douglas K. Rand <rand@meridian-enviro.com> MFC after: 3 days
* Improve cleartmp in a number of aspects:yar2006-10-161-36/+37
| | | | | | | | | | | | | | | + Use rc.subr(8) features properly. + Do the whole job of obliterating /tmp contents in find(1). + Leave lost+found and quota.{user,group} in /tmp only if root-owned. + Make the overall structure clearer by first removing the X dirs (perhaps along with the rest of /tmp) and then re-creating them. + Use "find -exec rm -rf {} +" for efficiency: each rm instance gets a chance to kill as much files in /tmp as ARG_MAX permits. PR: bin/104044 Submitted by: Andrey Simonenko <see PR for email> Hacked by: yar MFC after: 1 month
* RC script for idmapd(8), defaulting to off.ceri2006-10-152-1/+19
|
* Revert the default value of net.inet6.ip6.auto_linklocal to 1.ume2006-10-131-2/+8
| | | | | | | | If ipv6_enable is not set to "YES", net.inet6.ip6.auto_linklocal is turned to 0 at boot. Discussed with: re@, gnn@ MFC after: 3 days
* Restore the behavior that net.inet6.ip6.auto_linklocal=0 couldume2006-10-072-1/+19
| | | | | | be coexist with ipv6_enable="YES". MFC after: 3 days
* Introduce mixer_enable (default: YES).flz2006-10-061-0/+1
| | | | | | | | PR: conf/101268 Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru> Approved by: cperciva (mentor) X-MFC after: 6.2-RELEASE Sponsored by: FreeBSD Test-Bugathon
* Pull in /etc/rc.conf.d/network so that ifconfig_<if> variables can bebrooks2006-10-021-0/+1
| | | | | | | | set there. This is required for consistency with /etc/rc.d/netif. PR: conf/103893 Submitted by: Nick Hibma <nick at anywi.com> MFC after: 3 days
* Push removal of mrouted down to the rest of the tree.bms2006-09-291-1/+1
|
* Sleep for one second after calling audit -t to give the audit daemon arwatson2006-09-241-0/+1
| | | | | | | | | | | | | | chance to actually terminate the audit service and exit. Otherwise, on an rc.d/auditd restart, the new audit daemon instance may try to start auditing while the previous session is still running. Likewise, this ensures a chance for auditd to terminate the audit trail at system shutdown. Perhaps more ideally, the script would wait synchronously for auditd to exit rather than for an arbitrary but short period of time. MFC after: 3 days Obtained from: TrustedBSD Project
* network_ipv6 also does some interface configuration so require it to runbrooks2006-09-211-1/+1
| | | | | | before starting devd so they don't trip over each other. PR: conf/103428
* Add bthidd(8) rc(8) scriptemax2006-09-072-1/+34
| | | | MFC after: 1 month
* 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
|
OpenPOWER on IntegriCloud