[pkg-netfilter-team] ipvsadm

Jeremy Sowden jeremy at azazel.net
Fri Mar 12 15:54:34 GMT 2021


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.

Any feedback much appreciated.  Obviously, there's no rush 'cause we're
in the middle of the Bullseye Freeze.

J.

[1]
https://wiki.debian.org/Teams/pkg-netfilter/tasks#Task:_ipvsadm_refresh
[2] https://salsa.debian.org/pkg-netfilter-team/pkg-ipvsadm
-------------- 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/20210312/1df99570/attachment.sig>


More information about the pkg-netfilter-team mailing list