Date: Thu, 22 Nov 2018 04:48:28 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r340754 - head/libexec/rc/rc.d Message-ID: <201811220448.wAM4mSZE014130@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Thu Nov 22 04:48:27 2018 New Revision: 340754 URL: https://svnweb.freebsd.org/changeset/base/340754 Log: 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 Modified: head/libexec/rc/rc.d/ipmon Modified: head/libexec/rc/rc.d/ipmon ============================================================================== --- head/libexec/rc/rc.d/ipmon Thu Nov 22 04:39:06 2018 (r340753) +++ head/libexec/rc/rc.d/ipmon Thu Nov 22 04:48:27 2018 (r340754) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811220448.wAM4mSZE014130>