Tom Eastep wrote:
> mess-mate wrote:
> 
>> The fault is here: /etc/init.d/shorewall  ( debian ).
>> When i do a '/etc/init.d/shorewall stop' or /etc/init.d/shorewall
>> start', the message is there !
>>
>> But a 'shorewall stop' or 'shorewall start', there is no message.
>> Here i call directly /sbin/shorewall and not /etc/init.d/shorewall !
>>
>> Here is the shorewall file called on boot.
> 
> The following is the problem:
> 
>> # parse the shorewall params file in order to use params in
>> # /etc/default/shorewall
>> if [ -f "/etc/shorewall/params" ]
>> then
>>      . /etc/shorewall/params
>> fi
> 
> That bit of code works fine if the params file contains just simple
> assignment statements. But if, as in your case, the params file contains
> calls to shorewall library function, then the 'not found' message is emitted.
> 
> You can eliminate the problem by adding this code at the top of your
> /etc/shorewall/params file:
> 
>       [ -n "$SHOREWALL_LIBVERSION" ] && . /usr/share/shorewall/functions

That of course should have been:

    [ -n "$SHOREWALL_LIBVERSION" ] || . /usr/share/shorewall/functions

-Tom
-- 
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [EMAIL PROTECTED]
PGP Public Key   \ https://lists.shorewall.net/teastep.pgp.key

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to