On Jan 14, 2012, at 9:34 AM, Brad Clarke wrote:

> On Sat, Jan 14, 2012 at 10:39 AM, Laurent CARON
> <[email protected]> wrote:
>> Hi,
>> 
>> I'd like to know how possible it is to launch a particular command after
>> shorewall has been started.
>> 
>> In FIAIF it used to be: POST_START_SCRIPT[0]="/usr/bin/mycommand"
>> 
>> I know it could be also shorewall start && /usr/bin/mycommand...but
>> still I prefer the first approach.
>> 
> 
> http://shorewall.net/configuration_file_basics.htm#Files
> 
> I think /etc/shorewall/start will do what you need.
> 

/etc/shorewall/start is executed before start is complete. 
/etc/shorewall/started executes after the start/restart command is complete. 
The command currently being executed is available in $COMMAND.

-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: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to