Laurent CARON
2012-Jan-14 16:39 UTC
launching arbitrary command after starting/stopping/... shorewall
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. Thanks ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2
Brad Clarke
2012-Jan-14 17:34 UTC
Re: launching arbitrary command after starting/stopping/... shorewall
On Sat, Jan 14, 2012 at 10:39 AM, Laurent CARON <lcaron@unix-scripts.info> 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. Brad C ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2
Tom Eastep
2012-Jan-14 20:07 UTC
Re: launching arbitrary command after starting/stopping/... shorewall
On Jan 14, 2012, at 9:34 AM, Brad Clarke wrote:> On Sat, Jan 14, 2012 at 10:39 AM, Laurent CARON > <lcaron@unix-scripts.info> 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 \________________________________________________ ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2
Laurent CARON
2012-Jan-15 15:06 UTC
Re: launching arbitrary command after starting/stopping/... shorewall
On 14/01/2012 21:07, Tom Eastep wrote:> > On Jan 14, 2012, at 9:34 AM, Brad Clarke wrote: > >> On Sat, Jan 14, 2012 at 10:39 AM, Laurent CARON >> <lcaron@unix-scripts.info> 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.Hi, Thanks for pointing this out. Cheers ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2