Update multi-ISP doc for automatic .status file generation.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-01-17 07:30:13 -08:00
parent 5c596ed715
commit 4f90736601

View File

@ -49,9 +49,9 @@
</articleinfo> </articleinfo>
<warning> <warning>
<para>This document describes the Multi-ISP facility in Shorewall 4.5.0 <para>This document describes the Multi-ISP facility in <emphasis
and later. If you are running an earlier release, please see the role="bold">Shorewall 4.5.0 and later</emphasis>. If you are running an
documentation for that release.</para> earlier release, please see the documentation for that release.</para>
</warning> </warning>
<warning> <warning>
@ -1552,6 +1552,11 @@ DOWN_COUNT=2</programlisting>
<filename><replaceable>interface</replaceable>.status</filename> <filename><replaceable>interface</replaceable>.status</filename>
where <replaceable>interface</replaceable> is the interface (e.g., where <replaceable>interface</replaceable> is the interface (e.g.,
<filename>eth0.status</filename>).</para> <filename>eth0.status</filename>).</para>
<important>
<para>Beginning with Shorewall 4.5.0, the generated script
automatically maintains this .status file.</para>
</important>
</listitem> </listitem>
<listitem> <listitem>
@ -1911,9 +1916,10 @@ Your LSM Daemon
EOM EOM
[ ${STATE} = up ] &amp;&amp; state=0 || state=1 # Uncomment the next two lines if you are running Shorewall 4.4.x or earlier
echo $state &gt; ${VARDIR}/${DEVICE}.status # [ ${STATE} = up ] &amp;&amp; state=0 || state=1
# echo $state &gt; ${VARDIR}/${DEVICE}.status
/sbin/shorewall restart -f &gt;&gt; /var/log/lsm 2&gt;&amp;1 /sbin/shorewall restart -f &gt;&gt; /var/log/lsm 2&gt;&amp;1
@ -1984,10 +1990,10 @@ Your LSM Daemon
EOM EOM
<emphasis role="bold">if [ ${STATE} = up ]; then <emphasis role="bold">if [ ${STATE} = up ]; then
echo 0 &gt; ${VARDIR}/${DEVICE}.status # echo 0 &gt; ${VARDIR}/${DEVICE}.status # Uncomment this line if you are running Shorewall 4.4.x or earlier
${VARDIR}/firewall enable ${DEVICE} ${VARDIR}/firewall enable ${DEVICE}
else else
echo 1 &gt; ${VARDIR}/${DEVICE}.status # echo 1 &gt; ${VARDIR}/${DEVICE}.status # Uncomment this line if you are running Shorewall 4.4.x or earlier
${VARDIR}/firewall disable ${DEVICE} ${VARDIR}/firewall disable ${DEVICE}
fi fi
</emphasis> </emphasis>