summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2014-02-15 14:50:47 +0000
committerbdrewery <bdrewery@FreeBSD.org>2014-02-15 14:50:47 +0000
commit502860ada51d1853f8acb103e77e982ed59c8f65 (patch)
tree11dbae66ec1b3feaa7b0c5da3afc46a73246d54d /etc
parent54cfadd9cdb06b8b6d230223ad02476b3c880f5c (diff)
downloadFreeBSD-src-502860ada51d1853f8acb103e77e982ed59c8f65.zip
FreeBSD-src-502860ada51d1853f8acb103e77e982ed59c8f65.tar.gz
Allow overriding rctl.conf(5) file location for /etc/rc.d/rctl
Reviewed by: trasz Approved by: bapt (mentor) MFC after: 1 week
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf4
-rwxr-xr-xetc/rc.d/rctl4
2 files changed, 6 insertions, 2 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 0fe1687..4b9714e 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -660,6 +660,10 @@ mixer_enable="YES" # Run the sound mixer.
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_rules="/etc/rctl.conf" # rctl(8) ruleset. See rctl.conf(5).
+
##############################################################
### Jail Configuration (see rc.conf(5) manual page) ##########
##############################################################
diff --git a/etc/rc.d/rctl b/etc/rc.d/rctl
index 4fa0579..567436b 100755
--- a/etc/rc.d/rctl
+++ b/etc/rc.d/rctl
@@ -15,7 +15,7 @@ stop_cmd="rctl_stop"
rctl_start()
{
- if [ -f /etc/rctl.conf ]; then
+ if [ -f ${rctl_rules} ]; then
while read var comments
do
case ${var} in
@@ -25,7 +25,7 @@ rctl_start()
rctl -a "${var}"
;;
esac
- done < /etc/rctl.conf
+ done < ${rctl_rules}
fi
}
OpenPOWER on IntegriCloud