On 3/31/11 11:55 AM, James wrote:
> Hi Shorewall-devel,
> 
> In the documentation at:
> http://www.shorewall.net/configuration_file_basics.htm it explains how
> to include files inside a rules.d/ directory with the SHELL command.
> 
> This is great, and including directories is a great feature, however if
> the shell command returns false, then shorewall doesn't start (this is
> good) and stderr is also printed out (also good.) For including rules
> most users probably want:
> 
> SHELL cat /etc/shorewall/rules.d/*.rules 2> /dev/null || true
> 
> So I thought perhaps we could add that to the docs if you see fit.

Hi James,

What exactly can go wrong with "cat /etc/shorewall/rules.d/*.rules" ?

Only thing that I can see is if one of the directories doesn't exist or
there are no '*.rules' files. Seems to me that if either of those are
the case then the user has just shot himself in the foot and 'start'
*should* fail.

Am I missing something?

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to