[pkg-netfilter-team] ipvsadm

Jeremy Sowden jeremy at azazel.net
Sat Sep 11 13:26:48 BST 2021


On 2021-03-12, at 15:54:35 +0000, Jeremy Sowden wrote:
> One of the pending tasks in tasks wiki-page was to move and refresh
> ipvsadm [1].  I've created a Salsa repo [2] and updated the packaging.
>
> Most of the changes were fairly run-of-the-mill, but the one thing
> that was not entirely straightforward was the addition of the systemd
> service file.  The existing init-script starts and stops one or two
> daemons based on the configuration in /etc/default/ipvsadm -- master,
> backup or both -- loading the virtual server table before starting the
> daemons, and flushing it after stopping them.
>
> Initially, my approach was to create a service template which would be
> instantiated for each enabled daemon.  However, that made it
> complicated to load and flush the server table since each daemon would
> be started and stopped independently.  I also considered writing a
> service file that just called the init-script, but Lintian didn't like
> that. :) In the end, I wrote some shell-scripts, installed in
> /usr/libexec/ipvsadm, each encapsulating an action from the
> init-script -- one to start the daemons, one to stop them, one to load
> the server table and one to flush it -- and the service file makes use
> of these.
>
> [1] https://wiki.debian.org/Teams/pkg-netfilter/tasks#Task:_ipvsadm_refresh
> [2] https://salsa.debian.org/pkg-netfilter-team/pkg-ipvsadm

Done a bit more work on this.  Feedback would be appreciated.

I've also updated the tasks wiki-page to reflect that I'm working on it
and marked the xtables-addons and libnetfilter-* refresh tasks as done.
Hope that's all right.

J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-netfilter-team/attachments/20210911/ce16be9c/attachment.sig>


More information about the pkg-netfilter-team mailing list