summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
Commit message (Collapse)AuthorAgeFilesLines
* Since r275359, there is no need to provide a bogus service name.des2015-10-261-1/+1
| | | | MFC after: 3 weeks
* Allow osreldate and osrelease to be set per jailphk2015-10-201-0/+2
|
* After starting Unbound, wait for up to five seconds until unbound-controldes2015-10-191-0/+21
| | | | | | | indicates that it is up and running. PR: 184047 MFC after: 3 weeks
* Fix indentation in etc/rc.d/fsck.vangyzen2015-10-121-1/+1
| | | | | MFC after: 3 days Sponsored by: Dell Inc.
* When stopping ugidfw, it is not enough to just try unloading the module. Ifbdrewery2015-09-291-1/+10
| | | | | | | | | | | the module is built-in to the kernel then the kldunload will fail. Rather than do this just check if there are rules and then remove them all. Add requirement on FILESYSTEMS to ensure /usr is present for /usr/sbin/ugidfw and /usr/bin/xargs. This was already effectively the ordering from rcorder(8). MFC after: 2 weeks Relnotes: yes
* The "automount" rc script should depend on "automountd", not the othertrasz2015-09-183-3/+3
| | | | | | | way around. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Use read to parse a line instead of set.hrs2015-09-101-5/+4
| | | | MFC after: 3 days
* - Add uid check.hrs2015-09-101-4/+11
| | | | | | - Report delay<0 as a warning. MFC after: 3 days
* Update only static routes when an interface is specified. This fixedhrs2015-09-101-1/+1
| | | | | | | a bad side-effect reported in PR 202144. PR: 202144 MFC after: 3 days
* Fix a conversion error in rc.d/jailpeter2015-08-271-1/+1
|
* Replay r286410. Change KPI of how device drivers that provide wirelessglebius2015-08-271-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connectivity interact with the net80211 stack. Historical background: originally wireless devices created an interface, just like Ethernet devices do. Name of an interface matched the name of the driver that created. Later, wlan(4) layer was introduced, and the wlanX interfaces become the actual interface, leaving original ones as "a parent interface" of wlanX. Kernelwise, the KPI between net80211 layer and a driver became a mix of methods that pass a pointer to struct ifnet as identifier and methods that pass pointer to struct ieee80211com. From user point of view, the parent interface just hangs on in the ifconfig list, and user can't do anything useful with it. Now, the struct ifnet goes away. The struct ieee80211com is the only KPI between a device driver and net80211. Details: - The struct ieee80211com is embedded into drivers softc. - Packets are sent via new ic_transmit method, which is very much like the previous if_transmit. - Bringing parent up/down is done via new ic_parent method, which notifies driver about any changes: number of wlan(4) interfaces, number of them in promisc or allmulti state. - Device specific ioctls (if any) are received on new ic_ioctl method. - Packets/errors accounting are done by the stack. In certain cases, when driver experiences errors and can not attribute them to any specific interface, driver updates ic_oerrors or ic_ierrors counters. Details on interface configuration with new world order: - A sequence of commands needed to bring up wireless DOESN"T change. - /etc/rc.conf parameters DON'T change. - List of devices that can be used to create wlan(4) interfaces is now provided by net.wlan.devices sysctl. Most drivers in this change were converted by me, except of wpi(4), that was done by Andriy Voskoboinyk. Big thanks to Kevin Lo for testing changes to at least 8 drivers. Thanks to pluknet@, Oliver Hartmann, Olivier Cochard, gjb@, mmoll@, op@ and lev@, who also participated in testing. Reviewed by: adrian Sponsored by: Netflix Sponsored by: Nginx, Inc.
* etc/rc.d/hostname: permit setting hostname if already setfeld2015-08-121-5/+2
| | | | | Approved by: dteske Differential Revision: https://reviews.freebsd.org/D2577
* Finish reverting r286410 - sorry, I somehow missed this with svn commit.adrian2015-08-101-12/+0
|
* Change KPI of how device drivers that provide wireless connectivity interactglebius2015-08-071-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with the net80211 stack. Historical background: originally wireless devices created an interface, just like Ethernet devices do. Name of an interface matched the name of the driver that created. Later, wlan(4) layer was introduced, and the wlanX interfaces become the actual interface, leaving original ones as "a parent interface" of wlanX. Kernelwise, the KPI between net80211 layer and a driver became a mix of methods that pass a pointer to struct ifnet as identifier and methods that pass pointer to struct ieee80211com. From user point of view, the parent interface just hangs on in the ifconfig list, and user can't do anything useful with it. Now, the struct ifnet goes away. The struct ieee80211com is the only KPI between a device driver and net80211. Details: - The struct ieee80211com is embedded into drivers softc. - Packets are sent via new ic_transmit method, which is very much like the previous if_transmit. - Bringing parent up/down is done via new ic_parent method, which notifies driver about any changes: number of wlan(4) interfaces, number of them in promisc or allmulti state. - Device specific ioctls (if any) are received on new ic_ioctl method. - Packets/errors accounting are done by the stack. In certain cases, when driver experiences errors and can not attribute them to any specific interface, driver updates ic_oerrors or ic_ierrors counters. Details on interface configuration with new world order: - A sequence of commands needed to bring up wireless DOESN"T change. - /etc/rc.conf parameters DON'T change. - List of devices that can be used to create wlan(4) interfaces is now provided by net.wlan.devices sysctl. Most drivers in this change were converted by me, except of wpi(4), that was done by Andriy Voskoboinyk. Big thanks to Kevin Lo for testing changes to at least 8 drivers. Thanks to Olivier Cochard, gjb@, mmoll@, op@ and lev@, who also participated in testing. Details here: https://wiki.freebsd.org/projects/ifnet/net80211 Still, drivers: ndis, wtap, mwl, ipw, bwn, wi, upgt, uath were not tested. Changes to mwl, ipw, bwn, wi, upgt are trivial and chances of problems are low. The wtap wasn't compilable even before this change. But the ndis driver is complex, and it is likely to be broken with this commit. Help with testing and debugging it is appreciated. Differential Revision: D2655, D2740 Sponsored by: Nginx, Inc. Sponsored by: Netflix
* Make rctl_enable rc variable actually work. To avoid breaking existingtrasz2015-08-051-0/+1
| | | | | | | | setups that worked before, flip the default to "YES". Most people don't have /etc/rctl.conf, so they won't be affected in any way. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Address review.markm2015-07-081-4/+4
| | | | Differential Revision: https://reviews.freebsd.org/D2924
* Updated random(4) boot/shutdown scripting.markm2015-06-301-1/+42
| | | | | | | Fix the man pages as well. Differential Revision: https://reviews.freebsd.org/D2924 Approved by: so (delphij)
* Use correct flag in iovctl_start().pkelsey2015-06-271-1/+1
| | | | | | | Differential Revision: https://reviews.freebsd.org/D2921 Reviewed by: rstone Approved by: jmallett (mentor) Sponsored by: Norse Corp, Inc.
* Adjust default argument construction for -c to be getopt compliant forpeter2015-05-221-1/+1
| | | | consistency, even though unbound understood it.
* Move all test integration pieces for etc/ from etc/ to tests/ngie2015-05-183-149/+0
| | | | | | | | | | | This is being done to fix breakage with make distribution with read-only source trees as make distribution doesn't use make obj like building tests/ does in all cases Reported by: Wolfgang Zenker <wolfgang@lyxys.ka.sub.org> Suggested by: jhb X-MFC with: r282059 MFC after: 1 week
* Revert r282672.delphij2015-05-111-1/+1
| | | | | | | tr is in /usr and not available at the time hostid is run (must be run before FILESYSTEMS). Reported by: def
* Always convert uuid to lower case.delphij2015-05-081-1/+1
| | | | MFC after: 2 weeks
* Require "ldconfig" for "devd". It is possible that user puts intoglebius2015-04-281-1/+1
| | | | | | | | | | devd.conf execution of third-party software, that needs libraries from /usr/local. Since devd is launched before ldconfig script, if the hardware that has associated software is attached on boot, then execution would fail. Differential Revision: https://reviews.freebsd.org/D2332 Reviewed by: imp
* Generate new UUID if system UUID is known bad or malformed and add a twodelphij2015-04-271-8/+56
| | | | | | | seconds sleep if we found the system UUID be invalid. Obtained from: FreeNAS MFC after: 2 weeks
* Move etc/tests/rc.d to etc/rc.d/tests to match the directory layout jmmv@ngie2015-04-273-0/+149
|\ | | | | | | | | | | documented and implemented in other areas of the FreeBSD tree MFC after: 1 week
| * Move etc/tests/rc.d to etc/rc.d/tests to match the desired directory layoutngie2015-04-133-0/+149
| |
* | Remove some oldnfs remnants.trasz2015-04-182-39/+18
| | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2287 Reviewed by: rmacklem@ Sponsored by: The FreeBSD Foundation
* | Verify if the saved hostid is still the same and update ifdelphij2015-04-151-4/+11
|/ | | | | | | it was changed. Sponsored by: iXsystems, Inc. Obtained from: FreeNAS (trueos commit 0abb740)
* Typo fix in commentjpaetzel2015-04-061-1/+1
| | | | MFC after: 3 days
* Bug fixes and feature addsjpaetzel2015-04-051-33/+37
| | | | | | | | | | - Remove extranious echo that breaks puppet - Handle restarts of multiple pflog devices correctly - Add the ability to perform actions on specific pflog devices. PR: 199150 Submitted by: jason.unovitch@gmail.com MFC after: 3 days
* Add an rc.d script to invoke iovctl(8) during bootrstone2015-03-013-1/+41
| | | | | | | | Differential Revision: https://reviews.freebsd.org/D88 Reviewed by: wblock, emaste, allanjude MFC after: 1 month Relnotes: yes Sponsored by: Sandvine Inc.
* Unbreak rcorder when MK_UTX == no by moving utx from REQUIRE: in LOGIN tongie2015-02-132-1/+2
| | | | | | BEFORE: in utx MFC after: 1 week
* Unbreak rcorder when MK_UNBOUND == no by moving local_unbound from REQUIRE:ngie2015-02-132-1/+2
| | | | | | in NETWORKING to BEFORE: in the script MFC after: 2 weeks
* rc.d: load the network config file for netifroyger2015-02-101-0/+3
| | | | | | r272959 broke compatibility with mfsBSD that stores the default network config file in /etc/rc.conf.d/network. In order to fix that load the network config file from netif also.
* Un-revert the r278323 again - whatever Jenkins/kyua is up it, it hasjamie2015-02-101-2/+1
| | | | nothing to do with this.
* Remove explicit routing/sendmail rc.d inclusion in FILESngie2015-02-091-2/+0
| | | | | | | Reported by: Guy Yur <guyyur@gmail.com> MFC after: 14 days X-MFC with: r278249 Sponsored by: EMC / Isilon Storage Division
* Revert the rc part of r278323 until I can figure out what Jenkins is doing.jamie2015-02-071-1/+2
|
* Add mount.procfs jail parameter, so procfs can be mounted when a prison'sjamie2015-02-061-3/+2
| | | | | | | | | root is in its fstab. Also fix a typo while I'm at it. PR: 197237 197066 MFC after: 3 days
* Don't add static IPv6 routes when to all FIBs when net.add_addr_allfibs is 0.rpaulo2015-02-061-2/+3
| | | | | | This avoids a bunch of boot time warnings when rc.d/routing runs. MFC after: 1 week
* Use FILES+= idiom instead of _inetd when referencing inetd rc.d scriptngie2015-02-051-1/+1
| | | | | | | | | | | This was a discrepancy between ^/projects/building-blocks and ^/head that I didn't resolve before committing the change to ^/head Pointyhat to: me Reported by: jhb MFC after: 20 days X-MFC with: r278249 Sponsored by: EMC / Isilon Storage Division
* Honor the following flags with the following rc.d scripts for services that canngie2015-02-051-14/+49
| | | | | | | | | | | | | | | | | | | | | be easily decoupled from the boot process without disrupting other services - MK_APM && MK_ACPI: powerd - MK_BOOTPARAMD: bootparams - MK_FTP: ftpd - MK_INETD: inetd - MK_LEGACY_CONSOLE: moused, syscons - MK_MAIL: othermta - MK_NS_CACHING: nscd - MK_NTP: ntpd (ntpdate is required by other services and can't be easily conditionalized -- yet..) - MK_ROUTED: routed - MK_SENDMAIL: sendmail - MK_TIMED: timed - MK_VI: virecover MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* Remove hostapd and wpa_supplicant from FILES so they're installed conditionallyngie2015-02-021-2/+0
| | | | | | | if MK_WIRELESS != no MFC after: 3 days X-MFC with: r277740
* ipfilter 5.1.2 (vs 4.1.28 in previous releases of FreeBSD) stores IPv4cy2015-01-281-1/+0
| | | | | | | | | and IPv6 rules in a single table. ipf -6 -Fa will flush the whole table, including IPv4 rules. This patch removes the redundant ipf -I -6 -Fa statement. PR: 188318 MFC after: 2 weeks
* Respect MK_KERBEROS with etc/rc.d/ipropd_master and etc/rc.d/ipropd_slavengie2015-01-261-2/+2
| | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Honor MK_WIRELESS with etc/rc.d/hostapd and etc/rc.d/wpa_supplicantngie2015-01-261-0/+5
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Honor MK_JAIL with etc/rc.d/jailngie2015-01-261-1/+4
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Honor MK_ACCT with etc/rc.d/accountingngie2015-01-261-0/+4
| | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Remove explicit inclusion of lpd from FILESngie2015-01-261-1/+0
| | | | | | X-MFC with: 277731 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Honor MK_AMD with etc/rc.d/amdngie2015-01-261-1/+4
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Honor MK_API in etc/rc.dngie2015-01-261-2/+5
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
OpenPOWER on IntegriCloud