summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
Commit message (Collapse)AuthorAgeFilesLines
* Revert the apparently-unecessary module_path twiddling from r223917dougb2011-07-221-15/+2
| | | | Approved by: re (kib)
* rc.d/routing: Fix ugly output with additional routing options.jilles2011-07-171-15/+27
| | | | | | | | | Print a separate "Additional routing options" line for each address family which has additional options, so that it does not get mixed up with the output from adding routes. This also reverts r224048 which added newlines to two arbitrary routing options.
* Remove "-n" from echokevlo2011-07-151-2/+2
| | | | Reviewed by: dougb
* Make sure we load kernel modules from the same path as the running kerneldougb2011-07-101-2/+15
|
* Delete the /etc/rc.d/nfsserver script, since it is normacklem2011-07-085-23/+4
| | | | | | | | longer used by /etc/rc.d/nfsd and it is no longer necessary to load the old nfs server by default, when nfs_server_enable="YES". Tested by: sgk at troutmask.apl.washington.edu Reviewed by: rc (Andrzej Tobola)
* Fix the /etc/rc.d/nfsd script so that it no longer usesrmacklem2011-07-071-3/+3
| | | | | | | | the /etc/rc.d/nfsserver script to load the old nfs server module. Tested by: sgk at troutmask.apl.washington.edu Reviewed by: rc (hrs)
* Run load_rc_config before stop_cmd definition, so that ${quotaoff_flags}pluknet2011-06-281-1/+1
| | | | | | | | is correctly expanded inside stop_cmd instead of getting nothing. PR: conf/157687 Reported by: Dmitry Banschikov <d.banschikov peterhost ru> MFC after: 1 week
* I knew there was something funny about this linedougb2011-06-221-1/+2
|
* Blah, forgot to svn add the actual script from r223310dougb2011-06-191-0/+97
|
* Add the netwait rc.d script. It waits for the specified period for thedougb2011-06-192-2/+2
| | | | | | | network to become active. PR: conf/151063 Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com>
* Add rc.d/kld to load kernel modules after local disks are up.dougb2011-06-183-2/+55
| | | | This method is many times faster than doing it in /boot/loader.conf.
* - Remove $ipv6_gateway_enable check.hrs2011-06-111-7/+1
| | | | - Use list_net_interfaces() instead of "ifconfig -l".
* Make three one line changes to the rc scripts so thatrmacklem2011-06-112-2/+2
| | | | | | they work with the new NFS client being the default, since the new NFS client's module name is nfscl and not nfsclient.
* Remove redundant keywords.hrs2011-05-172-2/+2
| | | | Submitted by: wxs
* Change the new NFS server so that it uses vfs.nfsd namingrmacklem2011-05-081-3/+3
| | | | | for its sysctls instead of vfs.newnfs. This separates the names from the ones used by the client.
* Upgrade to OpenSSH 5.8p2.des2011-05-041-1/+10
|
* Fix module names and dependencies so the NFS clients willrmacklem2011-04-271-1/+1
| | | | load correctly as modules after r221124.
* Update the /etc/rc.d scripts for mountd and nfsd so theyrmacklem2011-04-262-17/+29
| | | | | | | | | | can use the "-o" option to force the old NFS server to run. Running the old NFS server is enabled by setting oldnfs_server_enable="YES". The scripts will only enable providing service for NFSv4 if nfsv4_server_enable="YES" is set. Reviewed by: dougb (rc)
* Create a function for the code from r192246 so that it can be used bothdougb2011-04-251-11/+15
| | | | | | | | times mount is called. Limit the automatic behavior to when AUTO is specified (as it is in etc/defaults/rc.conf) and for everything else take advantage of all of the goodness in checkyesno.
* Add svn:executable propertydougb2011-04-251-0/+0
|
* Introduce to rc.subr get_pidfile_from_conf(). It does just what it soundsdougb2011-04-232-2/+29
| | | | | | | | | like, determines the path to a pid file as it is specified in a conf file. Use the new feature for rc.d/named and rc.d/devd, the 2 services in the base that list their pid files in their conf files. Remove the now-obsolete named_pidfile, and warn users if they have it set.
* Add startup script, to load rules from /etc/rctl.conf.trasz2011-03-302-1/+40
| | | | | Sponsored by: The FreeBSD Foundation Reviewed by: kib (ealier version)
* Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical.emaste2011-03-308-51/+51
| | | | | | This is a further clean up after r202988. SYSCTL_W is still initialized in rc.subr as some ports may still use it.
* - Merge in OFED 1.5.3 from projects/ofed/headjeff2011-03-212-0/+32
|
* Remove the svn:executable property on Makefiledougb2011-03-132-0/+0
| | | | Add it on hastd
* Commit two more files missed in r219089.pjd2011-02-271-2/+0
| | | | MFC after: 1 month
* Recognize 'reload' command, as hastd can be reloaded with the SIGHUP signal.pjd2011-02-271-0/+1
| | | | MFC after: 1 week
* The new accounting file needs to be 644 so that unprivileged usersdougb2011-02-241-0/+1
| | | | can use lastcomm(1)
* Update how accounting log files are rotated.dougb2011-02-221-8/+32
| | | | | | | | | | | | | | | | The old version had a race between the time that the old file was cp'ed to acct.0 and the time that 'sa -s' was run that prevented the commands that occurred in the meantime from being backed up. It's also arguable that the old version was inefficient in using cp which can be a problem on a space-constrained system. This version avoids both problems, albeit it's considerably more complicated. The advantage of putting the log rotation in the rc.d script is that it can handle the _enable and _file questions without having to do gymnastics to discover either value in the periodic script. As a side effect of reviewing the rc.d script I cleaned it up a bit.
* Let rpcbind clean up after itselfdougb2011-01-311-0/+2
|
* Don't require /usr/lib/aout to be on the system. Test for itsimp2011-01-061-2/+2
| | | | | | existance since we don't generally need it. MFC after: 1 week
* Add pidfile [1]dougb2010-12-271-5/+11
| | | | | | | | While I'm here, don't run the sysctl frob unconditionally, and s/sysctl/$SYSCTL/ PR: conf/153460 [1] Submitted by: Grigory Rechistov <ggg_mail@inbox.ru>
* Add pf in quiet modekevlo2010-12-171-2/+2
|
* Add a sync to the shutdown step. In the common case this will be harmlessdougb2010-11-251-2/+2
| | | | | | | at worst. On a heavily loaded server it will give the fs a chance to do its business without the axe hanging over its head. Submitted by: ivoras
* Add gptboot_enable rc variable, which allows to turn gptboot reporting off inpjd2010-11-241-0/+1
| | | | | | | | case user wants to implement his own actions and doesn't want the attributes to vanish. Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com MFC after: 3 days
* /etc/rc.d/defaultroute currently bails immediately if all interfacesemaste2010-09-291-17/+26
| | | | | | | | | | | | | | | | set to use DHCP have no carrier. This can cause grief as it may take some time for link to be established, and defaultroute may terminate before this happens. Introduce a defaultroute_carrier_delay variable and then wait that long in defaultroute before bailing if no interfaces have carrier. With the default settings defaultroute will wait for five seconds for this, and the original 30 second wait for a default route to appear is unchanged. Note that there is in discussion an alternative approach to the broader problem of waiting for DHCP-configured routes. However, this change addresses a real problem in the current defaultroute script. Discussed on: freebsd-rc@
* Prefer echo over printfimp2010-09-271-1/+1
|
* Add gptboot script that is responsible for:pjd2010-09-242-1/+77
| | | | | | | | | | | | - looking for partition with 'bootonce' attribute alone (without 'bootme' attribute), removing it and logging that we successfully booted from this partition. - looking for partitions with 'bootfailed' attribute, removing it and logging that we failed to boot from this partition. Reviewed by: arch (Message-ID: <20100917234542.GE1902@garage.freebsd.pl>) Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com MFC after: 2 weeks
* Split $ipv6_prefer into $ip6addrctl_policy and $ipv6_activate_all_interfaces.hrs2010-09-132-11/+37
| | | | | | | | | | | | | | | | | | | The $ip6addrctl_policy is a variable to choose a pre-defined address selection policy set by ip6addrctl(8). The keyword "ipv4_prefer" sets IPv4-preferred one described in Section 10.3, the keyword "ipv6_prefer" sets IPv6-preferred one in Section 2.1 in RFC 3484, respectively. When "AUTO" is specified, it attempts to read /etc/ip6addrctl.conf first. If it is found, it reads and installs it as a policy table. If not, either of the two pre-defined policy tables is chosen automatically according to $ipv6_activate_all_interfaces. When $ipv6_activate_all_interfaces=NO, interfaces which have no corresponding $ifconfig_IF_ipv6 is marked as IFDISABLED for security reason. The default values are ip6addrctl_policy=AUTO and ipv6_activate_all_interfaces=NO. Discussed with: ume and bz
* Add $ipv6_privacy to support net.inet6.ip6.use_tempaddr. Note that thishrs2010-09-131-0/+7
| | | | | | will be replaced with a per-IF version later. Based on: changes in r206408 by dougb
* Revert changes in r206408.hrs2010-09-133-15/+3
| | | | Discussed with: dougb, core.5, and core.6
* Avoid to try to remove suj journal file (.sujournal) and conventionaldaichi2010-09-051-0/+3
| | | | snapshot directory (.snap) from cleartmp rc.d script.
* Allow starting /etc/rc.d/ipmon if ipnat is enabled but ipfilter is notjilles2010-08-011-1/+1
| | | | | | | | | | | (in /etc/rc.conf). This fixes an apparent confusion between test(1) and sh(1) syntax for AND/OR. PR: conf/149036 Submitted by: pluknet MFC after: 1 week
* This change does the following for the scripts that run up throughdougb2010-05-1911-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FILESYSTEMS (the default early_late_divider): 1. Move sysctl to run first 2. Move as many BEFOREs to REQUIREs as possible. 3. Minor effect, move hostid_save from right before mdconfig to right after. A lot of the early scripts make use of sysctl one way or another so running this first makes a lot of sense given that system-critical values are often placed in sysctl.conf. My original purpose for working on this was that while doing some debugging on other stuff I noticed that the order of execution was different in the first pass through the early scripts and the second. In practice that doesn't matter because the scripts are not executed the second time. However this _can_ result in problems if the difference in the rcorder moves a script from the late section to the early section in the second pass (which would mean the script would not get executed). So, I wanted to make the order of execution of the scripts in the early section more deterministic. In the course of debugging the ordering problems I noticed that moving the BEFOREs to REQUIREs prevented the changes in order from the first pass to the second pass without having to make any substantial changes. (Of course it's no secret that I think BEFORE should be avoided as much as possible, but this is a good example of why.) Reviewed by: silence on freebsd-rc@ MFC after: 8.1-RELEASE
* Remove trailing white space. No functional changes.dougb2010-05-1414-23/+23
|
* In the case where named_chroot_autoupdate is NOT set, butdougb2010-04-281-4/+10
| | | | | | | | | | | | | | | | named_chrootdir IS set, named-checkconf fails because it cannot find the conf file. Fix this by making checkconf a variable that includes "-t $named_chrootdir" as needed. Notice of the bug and suggested direction for the fix from [1]. Using required_files for named.conf is overkill ever since I added the named-checkconf call, so rather than update the logic to handle the case described above, remove it. This also handles the case where named_chroot_autoupdate IS set but the symlink doesn't exist yet. PR: conf/145904 Submitted by: J R Matthews
* Better handling of ipv6_default_interface usingume2010-04-261-21/+11
| | | | | | | net.inet6.ip6.use_defaultzone=1. Now, it works IPv6 link-local unicast addresses as well as IPv6 link-local multicast addresses. MFC after: 1 week
* Add ubthidhci.rpaulo2010-04-161-0/+4
| | | | MFC after: 2 days
* Add rc.d/ubthidhci. This small script calls usbconfig(1) to change a USBrpaulo2010-04-091-0/+40
| | | | | | Bluetooth controller from HID mode to HCI mode. MFC after: 1 week
* Improve the handling of IPv6 configuration in rc.d. The ipv6_enabledougb2010-04-093-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and ipv6_ifconfig_<interface> options have already been deprecated, these changes do not alter that. With these changes any value set for ipv6_enable will emit a warning. In order to avoid a POLA violation for the deprecation of the option ipv6_enable=NO will still disable configuration for all interfaces other than lo0. ipv6_enable=YES will not have any effect, but will emit an additional warning. Support and warnings for this option will be removed in FreeBSD 10.x. Consistent with the current code, in order for IPv6 to be configured on an interface (other than lo0) an ifconfig_<interface>_ipv6 option will have to be added to /etc/rc.conf[.local]. 1. Clean up and minor optimizations for the following functions: ifconfig_up (the ipv6 elements) ipv6if ipv6_autoconfif get_if_var _ifconfig_getargs The cleanups generally were to move the "easy" tests earlier in the functions, and consolidate duplicate code. 2. Stop overloading ipv6_prefer with the ability to disable IPv6 configuration. 3. Remove noafif() which was only ever called from ipv6_autoconfif. Instead, simplify and integrate the tests into that function, and convert the test to use is_wired_interface() instead of listing wireless interfaces explicitly. 4. Integrate backwards compatibility for ipv6_ifconfig_<interface> into _ifconfig_getargs. This dramatically simplifies the code in all of the callers, and avoids a lot of other code duplication. 5. In rc.d/netoptions, add code for an ipv6_privacy option to use RFC 4193 style pseudo-random addresses (this is what windows does by default, FYI). 6. Add support for the [NO]RTADV options in ifconfig_getargs() and ipv6_autoconfif(). In the latter, include support for the explicit addition of [-]accept_rtadv in ifconfig_<interface>_ipv6 as is done in the current code. 7. In rc.d/netif add a warning if $ipv6_enable is set, and remove the set_rcvar_obsolete for it. Also remove the latter from rc.d/ip6addrctl. 8. In /etc/defaults/rc.conf: Add an example for RTADV configuration. Set ipv6_network_interfaces to AUTO. Switch ipv6_prefer to YES. If ipv6_enable is not set this will have no effect. Add a default for ipv6_privacy (NO). 9. Document all of this in rc.conf.5.
OpenPOWER on IntegriCloud