summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2015-08-05 17:38:02 +0000
committertrasz <trasz@FreeBSD.org>2015-08-05 17:38:02 +0000
commita34c93c2297d1598283d6ab0b798c14f945e7634 (patch)
tree13b77f99be34c55b18fd5e3f3a2fa9c92548049b /etc
parent1b47007c5a9cc1caa236827a984cadeb324a9d00 (diff)
downloadFreeBSD-src-a34c93c2297d1598283d6ab0b798c14f945e7634.zip
FreeBSD-src-a34c93c2297d1598283d6ab0b798c14f945e7634.tar.gz
Make rctl_enable rc variable actually work. To avoid breaking existing
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
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf2
-rwxr-xr-xetc/rc.d/rctl1
2 files changed, 2 insertions, 1 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 125d59e..fbe18db 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -664,7 +664,7 @@ opensm_enable="NO" # Opensm(8) for infiniband devices defaults to off
casperd_enable="YES" # casperd(8) daemon
# rctl(8) requires kernel options RACCT and RCTL
-rctl_enable="NO" # Load rctl(8) rules on boot
+rctl_enable="YES" # Load rctl(8) rules on boot
rctl_rules="/etc/rctl.conf" # rctl(8) ruleset. See rctl.conf(5).
iovctl_files="" # Config files for iovctl(8)
diff --git a/etc/rc.d/rctl b/etc/rc.d/rctl
index 567436b..93b200d 100755
--- a/etc/rc.d/rctl
+++ b/etc/rc.d/rctl
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="rctl"
+rcvar="rctl_enable"
start_cmd="rctl_start"
stop_cmd="rctl_stop"
OpenPOWER on IntegriCloud