summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
Commit message (Collapse)AuthorAgeFilesLines
* Fix grammar in error statementdteske2016-02-041-1/+1
| | | | s/consider to migrate to jail.conf/consider migrating to jail.conf/
* Allow specification of fetch options for ntp leap-seconds fetch.cy2016-01-271-1/+1
| | | | | MFC after: 1 week X-MFC with: r289421, r293037, r294773
* Add support for automatic leap-second file updates.cy2016-01-261-0/+67
| | | | | | | | | | | | | | | | | | | | | The working copy of leapfile resides in /var/dbntpd.leap-seconds.list. /etc/ntp/leap-seconds (periodically updated from ftp://time.nist.gov/pub/ or ftp://tycho.usno.navy.mil/pub/ntp/) contains the master copy should automatic leapfile updates be disabled (default). Automatic leapfile updates are fetched from $ntp_leapfile_sources, defaulting to https://www.ietf.org/timezones/data/leap-seconds.list, within $ntp_leapfile_expiry_days (default 30 days) from leap-seconds file expiry. Automatic updates can be enabled by setting $daily_ntpd_leapfile_enable="YES" in periodic.conf. To avoid congesting the ntp leapfile source the automatic update randomized by default but can be disabled through daily_ntpd_avoid_congestion="NO" in periodic.conf. Suggested by: des Reviewed by: des, roberto, dwmalone, ian, cperciva, glebius, gjb MFC after: 1 week X-MFC with: r289421, r293037
* Allow the (old rc-style) exec_afterstart jail parameters to start numberingjamie2016-01-251-3/+3
| | | | | | | | at 0, like exec_prestart and the others do. Make param0 optional, i.e. still look for param1. PR: 142973 MFC after: 3 days
* Do not generate RSA1 or DSA keys by default.des2016-01-221-2/+2
|
* Add ldconfig -soft to process the soft float abi libraries and put itimp2016-01-181-0/+22
| | | | into startup scripts for armv6. It acts much like ldconfig -32 does.
* Wrap overlong comment lines.trasz2016-01-141-6/+6
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix the code to retry mount attempt in mountcritlocal if there aretrasz2016-01-141-1/+1
| | | | | | | | | any root mount holds. The previous one used a wrong conditional - the "err=$?" assignment resets "$?" to 0. Submitted by: jilles@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Let old-style (shell-based) jail configuration handle jail names thatjamie2015-12-261-62/+68
| | | | | | | | | | | | | contain characters not allowed in a shell variable (such as "-"). These will be replaced by an underscore in jail config variables, e.g. for jail "foo-bar" you would set "jail_foo_bar_hostname". This is separate from the current code that changes the jail names if they contain "." or "/". It also doesn't apply to jails defined in a jail.conf file. PR: 191181 MFC after: 5 days
* Enhance rc.d/netwait script to wait for late-attaching interfaces such asian2015-12-262-57/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USB NICs. USB network hardware may not be enumerated and available when the rc.d networking scripts run. Eventually the USB attachment completes and devd events cause the network initialization to happen, but by then other rc.d scripts have already failed, because services which depend on NETWORKING (such as mountcritremote) may end up running before the network is actually ready. There is an existing netwait script, but because it is dependent on NETWORKING it runs too late to prevent failure of some other rc scripts. This change flips the order so that NETWORKING depends on netwait, and netwait now depends on devd and routing (the former is needed to make interfaces appear, and the latter is needed to run the ping tests in netwait). The netwait script used to be oriented primarily towards "as soon as any host is reachable the network is fully functional", so you gave it a list of IPs to try and you could optionally name an interface and it would wait for carrier on that interface. That functionality still works the same, but now you can provide a list of interfaces to wait for and it waits until each one of them is available. The ping logic still completes as soon as the first IP on the list responds. These changes were submitted by Brenden Molloy <brendan+freebsd@bbqsrc.net> in PR 205186, and lightly modified by me to allow a list of interfaces instead of just one. PR: 205186 Differential Revision: https://reviews.freebsd.org/D4608 (timeout w/o review)
* Modify the rctl rc script to add multiple rules in a single run.trasz2015-12-011-2/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Load our configuration before setting defaults, so local_unbound_workdirdes2015-12-011-2/+2
| | | | | | | | actually has an effect. PR: 204931 Submitted by: Eugene Grosbein <eugen@grosbein.net> MFC after: 1 week
* Add support for the new "-manage-gids" option for the nfsuserd daemonrmacklem2015-11-302-1/+14
| | | | | | | | | | to the rc scripts. With these changes, setting nfs_server_managegids="YES" in /etc/rc.conf will enable this capability. Suggested by: jpaetzel Tested by: jpaetzel Reviewed by: rc (pending) MFC after: 2 weeks
* When extracting mtrees, pass -i so schg/sappnd are respected.bdrewery2015-11-091-2/+2
| | | | | | | | | | | | This fixes /var/empty not being schg in the installation. This was a change from fmtree to nmtree, that -i is now required to apply these flags. PR: 194189 Submitted by: guyyur@gmail.com MFC after: 2 weeks Relnotes: yes
* After r290196, the kernel won't wait for stuff like gmirror nodestrasz2015-10-301-2/+36
| | | | | | | | | | | | | if they are not required for mounting rootfs. However, it's possible that some setups try to mount them in mountcritlocal (ie from fstab). Export the list of current root mount holds using a new sysctl, vfs.root_mount_hold, and make mountcritlocal retry if "mount -a" fails and the list is not empty. MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3709
* Ignore per-mdN settings in mdconfig[2] startupdteske2015-10-292-0/+4
| | | | | | | PR: base/189696 Submitted by: ganael.laplanche@martymac.org MFC after: 3 days X-MFC-to: stable/10 stable/9
* 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.
OpenPOWER on IntegriCloud