[Dnsmasq-discuss] [PATCH 1/2] add systemd socket activation support

g.esp at free.fr g.esp at free.fr
Fri Aug 31 16:02:09 BST 2012



----- Mail original -----
> De: "microcai" <microcai at fedoraproject.org>
> À: Dnsmasq-discuss at lists.thekelleys.org.uk
> Envoyé: Vendredi 31 Août 2012 14:52:16
> Objet: [Dnsmasq-discuss] [PATCH 1/2] add systemd socket activation support
> 
> I add systemd socket activation for dnsmasq.
> 
> systemd is a sysvinit replacement (see [1] for more information).
> One of the goals of systemd is to do parellel startup.
> 
> For parellel startup to work, you need to have socket activation as well
> as dbus activation. see [2]
> 
> I would like to ask you to accept this patch and socket unit files as
> the upstream distributor.
> 
> Please include this feature in your next release.
> 
> [1] http://en.wikipedia.org/wiki/Systemd
> 
> [2] http://0pointer.de/blog/projects/inetd.html
> ---
>  Makefile        |   2 +-
>  src/dhcp.c      |  10 ++
>  src/dnsmasq.c   |   2 +
>  src/dnsmasq.h   |   2 +
>  src/network.c   |  16 ++++
>  src/sd-daemon.h | 277
>  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  6 files changed, 308 insertions(+), 1 deletion(-)
>  create mode 100644 src/sd-daemon.h
> 
> diff --git a/Makefile b/Makefile
> index ee7d36f..33211b0 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -28,7 +28,7 @@ CFLAGS        = -Wall -W -O2
>  LDFLAGS       =
>  COPTS         =
>  RPM_OPT_FLAGS =
> -LIBS          =
> +LIBS          = -lsystemd-daemon
>  

Would not that addition break the build on system that do not have systemd-daemon library?

Gilles



More information about the Dnsmasq-discuss mailing list