summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes for etc/uqs2012-01-071-1/+1
|
* Add 'nojail' keyword as auditd(8) can't really do anything useful whenpjd2012-01-061-1/+1
| | | | | | | inside a jail. Discussed with: rwatson MFC after: 1 week
* - Put one file into one line. This makes keeping local changes and mergingpjd2011-12-151-39/+154
| | | | | | | | | with FreeBSD easier for vendors. - For optional files use variables starting with underscore. Both changes make rc.d/Makefile look similar to sys/modules/Makefile. Reviewed by: dim
* Ensure kldxref is run first. Currently both 'kldxref' and 'kld' dependobrien2011-12-011-1/+1
| | | | | | on "FILESYSTEMS" and 'kld' is being run 8 scripts ahead of 'kldxref'. Reported by: dhw
* rc.d: Eliminate some unnecessary non-POSIX constructs:jilles2011-11-082-1/+2
| | | | | | * set - ... * empty braces * ^ in character class
* Whenever you boot with nfsv4_server_enable=NO (the default) in rc.conf,dim2011-11-051-0/+5
| | | | | | | | | | | | | | | | | | | the /etc/rc.d/nfsd script sets vfs.nfsd.server_max_nfsvers to 3. Then, when you set nfsv4_server_enable=YES in rc.conf, and restart nfsd via the rc.d script, without rebooting, the sysctl does *not* get reset to max version 4, so NFSv4 still doesn't work. Fix this by explicitly setting vfs.nfsd.server_max_nfsvers to 4 when NFSv4 is requested. I also added resetting of the nfs_privport sysctls, since this has the same issue: nfs_reserved_port_only=YES in rc.conf sets the nfs_privport sysctl to 1, but in the other case, the sysctl doesn't get reset to 0. Reviewed by: rmacklem Silence from: rc@ MFC after: 3 days
* Fix handling of rc_force in /etc/rc.d/dhclientrea2011-10-281-4/+13
| | | | | | | | | | Variable 'rc_force' is accessible only at the time of rc_run_command, so it can't be examined from the script's main code. Spotted by: hrs Reviewed by: hrs, des Approved by: des MFC after: 2 weeks
* Correctly reassign copyright of etc/rc.d/static_ndp back to delphij@mm2011-10-231-1/+1
| | | | | | | as the project itself is no legal entity Reported by: Joe Dahl <joel@vnode.se> MFC after: 3 days
* Add etc/rc.d/static_ndp, analogous to etc/rc.d/static_arp.mm2011-10-233-1/+76
| | | | | | | | | | Make sure that static ARP and NDP bindings are set before NETWORKING. As static_ndp is based on static_arp, pass copyright to the project with permission of the original author (delphij@). Reviewed by: delphij@FreeBSD.org MFC after: 3 days
* The rc_force test was inverted in the previous commit, so that dhclient randes2011-10-171-1/+1
| | | | | | | | | | | for interfaces which were not configured for DHCP *unless* rc_force was set; the correct logic is to run dhclient for those interfaces *only if* rc_force is set. Broken by: des@ Noticed by: everybody and his dog Submitted by: rea@ PR: bin/161733
* Make dhclient use a pid file. Modify the rc script accordingly; whiledes2011-10-131-32/+16
| | | | | | | there, clean it up and add some error checks. Glanced at by: brooks@ MFC after: 3 weeks
* Use REQUIRE: line to reorder rc.d/bridge instead of BEFORE: line.hrs2011-09-202-2/+1
| | | | | Pointed out by: dougb Approved by: re (bz)
* Use resolvconf(8) to create /etc/resolv.conf, not directly overwrite it.hrs2011-09-191-7/+7
| | | | Approved by: re (kib)
* Fix the script order to run rc.d/bridge after the initial networkhrs2011-09-191-1/+2
| | | | | | interface configuration and before running network daemons. Approved by: re (kib)
* Add $ipv6_cpe_wanif to enable functionality required for IPv6 CPEhrs2011-09-131-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | (r225485). When setting an interface name to it, the following configurations will be enabled: 1. "no_radr" is set to all IPv6 interfaces automatically. 2. "-no_radr accept_rtadv" will be set only for $ipv6_cpe_wanif. This is done just before evaluating $ifconfig_IF_ipv6 in the rc.d scripts (this means you can manually supersede this configuration if necessary). 3. The node will add RA-sending routers to the default router list even if net.inet6.ip6.forwarding=1. This mode is added to conform to RFC 6204 (a router which connects the end-user network to a service provider network). To enable packet forwarding, you still need to set ipv6_gateway_enable=YES. Note that accepting router entries into the default router list when packet forwarding capability and a routing daemon are enabled can result in messing up the routing table. To minimize such unexpected behaviors, "no_radr" is set on all interfaces but $ipv6_cpe_wanif. Approved by: re (bz)
* Honor WITHOUT_IPX when installing etc/rc.d/ipxrouted.delphij2011-08-231-1/+5
| | | | | MFC after: 1 week Approved by: re (kib)
* 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
OpenPOWER on IntegriCloud