On 8/20/2013 8:20 AM, Thomas D. wrote:
> Hi,
> 
> Tom Eastep wrote:
>> Here's a patch that implements a SERVICEFILE variable.
> 
> Works as expected. Thanks!
> 
> I only tested "shorewall" for the moment, but I saw that the patch does
> not contain Shorewall{6,6-lite}. Did you forget those or when releasing,
> will they use the installer from shorewall{,-lite}?

The same installer is used for Shorewall and Shorewall6. Same for the
two -lite products.

> 
> 
>> I'm still unclear about the requirements described in your last
>> paragraph above.
> 
> Let me try to explain:
> 
> Systemd tries to avoid running scripts. From Wikipedia [1]:
> 
>> [...]
>>
>> Lennart Poettering and Kay Sievers, the software engineers who
>> initially developed systemd,[1] sought to surpass the efficiency of
>> the init daemon in several ways. They wanted to improve the software
>> framework for expressing dependencies; to allow more processing to be
>> done concurrently or in parallel during system booting; and to reduce
>> the computational overhead of the shell.
> 
> But shorewall-init doesn't just call "/sbin/$PRODUCT stop". Before doing
> that, it will make sure that $STATEDIR/firewall exists (see init.sh's
> setstatedir() function, which will be called in shorewall_start();
> Debian, Fedora, SuSE... are all doing that in
> shorewall-init-4.5.20-RC1.tar.bz2 for example). Right?
> 
> So we have to use a wrapper script, which will be called from systemd.
> 
> Now the question is, where do we want place that script? It seems
> something like "/usr/libexec/$PACKAGENAME/$PACKAGENAME.init" is
> preferred (for shorewall-init:
> "/usr/libexec/shorewall-init/shorewall-init.init").
> 
> To install such a script, we need an addition variable in shorewallrc,
> don't we? Well, there is already "LIBEXECDIR" but I am not sure if we
> can use it for this purpose.
> 
> Additional, we would need support in installer.sh for something like
> SYSSTEMSCRIPT, don't we?
> 
> I hope it is now clear what I was trying to say.

Does the additional script need to do anything differently from what
/sbin/shorewall-init does currently? I created that file just to be able
to support systemd.

-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

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to