| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
inside a jail.
Discussed with: rwatson
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
on "FILESYSTEMS" and 'kld' is being run 8 scripts ahead of 'kldxref'.
Reported by: dhw
|
|
|
|
|
|
| |
* set - ...
* empty braces
* ^ in character class
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
as the project itself is no legal entity
Reported by: Joe Dahl <joel@vnode.se>
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
there, clean it up and add some error checks.
Glanced at by: brooks@
MFC after: 3 weeks
|
|
|
|
|
| |
Pointed out by: dougb
Approved by: re (bz)
|
|
|
|
| |
Approved by: re (kib)
|
|
|
|
|
|
| |
interface configuration and before running network daemons.
Approved by: re (kib)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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)
|
|
|
|
|
| |
MFC after: 1 week
Approved by: re (kib)
|
|
|
|
| |
Approved by: re (kib)
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Reviewed by: dougb
|
| |
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
| |
network to become active.
PR: conf/151063
Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com>
|
|
|
|
| |
This method is many times faster than doing it in /boot/loader.conf.
|
|
|
|
| |
- Use list_net_interfaces() instead of "ifconfig -l".
|
|
|
|
|
|
| |
they work with the new NFS client being the default,
since the new NFS client's module name is nfscl and
not nfsclient.
|
|
|
|
| |
Submitted by: wxs
|
|
|
|
|
| |
for its sysctls instead of vfs.newnfs. This separates the
names from the ones used by the client.
|
| |
|
|
|
|
| |
load correctly as modules after r221124.
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Sponsored by: The FreeBSD Foundation
Reviewed by: kib (ealier version)
|
|
|
|
|
|
| |
This is a further clean up after r202988.
SYSCTL_W is still initialized in rc.subr as some ports may still use it.
|
| |
|
|
|
|
| |
Add it on hastd
|
|
|
|
| |
MFC after: 1 month
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
| |
can use lastcomm(1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
existance since we don't generally need it.
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
| |
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
|