aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2018-11-22 04:48:27 +0000
committerCy Schubert <cy@FreeBSD.org>2018-11-22 04:48:27 +0000
commitd19c1c8ec26a799798210b6c9c4116fa9f9b321e (patch)
tree54e06b43eb95a7732a615773f7cfcf0dcdf7d7ca /libexec/rc
parent248b5d08b39766362cac1c413fb99ad5e57dbbe7 (diff)
downloadsrc-d19c1c8ec26a799798210b6c9c4116fa9f9b321e.tar.gz
src-d19c1c8ec26a799798210b6c9c4116fa9f9b321e.zip
Allow forced start of ipmon in special cases where testing is desired
(or other special cases) and when ipfilter is disabled in rc.conf but started by other means. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=340754
Diffstat (limited to 'libexec/rc')
-rwxr-xr-xlibexec/rc/rc.d/ipmon2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rc/rc.d/ipmon b/libexec/rc/rc.d/ipmon
index 129bdda157f9..17d46b1a66f2 100755
--- a/libexec/rc/rc.d/ipmon
+++ b/libexec/rc/rc.d/ipmon
@@ -21,7 +21,7 @@ ipmon_precmd()
# Continue only if ipfilter or ipnat is enabled and the
# ipfilter module is loaded.
#
- if ! checkyesno ipfilter_enable && ! checkyesno ipnat_enable ; then
+ if ! checkyesno ipfilter_enable && ! checkyesno ipnat_enable && ! checkyesno rc_force ; then
err 1 "${name} requires either ipfilter or ipnat enabled"
fi
if ! ${ipfilter_program:-/sbin/ipf} -V | grep -q 'Running: yes' >/dev/null 2>&1; then