linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lennart Poettering <lennart@poettering.net>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH] rpcbind: add support for systemd socket activation
Date: Wed, 21 Jul 2010 23:56:40 +0200	[thread overview]
Message-ID: <20100721215640.GA5648@tango.0pointer.de> (raw)
In-Reply-To: <4C4734DC.9010106@oracle.com>

On Wed, 21.07.10 13:56, Chuck Lever (chuck.lever@oracle.com) wrote:

> Why aren't sd-daemon.[ch] part of a systemd related library?  They
> seem pretty generic to me, and could be useful for other daemons.

Well, these two files are simply a reference implementation. The
algorithms are as trivial as they can get. For now we decided to simply
ask people to include the ref impl in their sources. Either the .c/.h
file or just the function needed. This is usually easier to get accepted
politically since this will then not add a new dependency to the
packages. Maybe one day when the number of APIs we provide are
substantial enough and the algorithms not trivial anymore we will add a
real library for this.

But for now, if people just add this tiny bit of code to their sources
this will be a feature that finds it way silently into the various
packages without requiring any new dependencies, and people will hence
have little reason to disable it.

> Plus, the newly introduced update-systemd Makefile target seems to
> suggest these won't be stable over time.  Wouldn't it be better to
> have a versioned library, external to rpcbind, with this code in it?

Well, the functions are trivial. I see little need to ever update them
unless sombody really wants new functionality.

Or to put this all in other words: the ABI/API that matters for the
socket activation are the execution semantics, and the two env vars
LISTEN_FDS and LISTEN_PID, it is not the C implementation we offer
people -- which does little more than parse those two env vars.

Or to put it in even other words: package maintainers are easily
convinced of merging support for this if we don't ask them to add an
additional dependency (which then would have to be ifdeffed) just for
the sake of parsing two env vars!

Lennart

-- 
Lennart Poettering - Red Hat, Inc.

  reply	other threads:[~2010-07-21 21:57 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19  2:19 [PATCH] rpcbind: add support for systemd socket activation Lennart Poettering
2010-07-21 17:56 ` Chuck Lever
2010-07-21 21:56   ` Lennart Poettering [this message]
2010-07-23 15:13     ` Chuck Lever
2010-07-23 16:27       ` Lennart Poettering
  -- strict thread matches above, loose matches on Subject: below --
2011-12-19 23:42 [PATCH v2] " Cristian Rodriguez
2011-12-23  1:05 ` [PATCH] " Tom Gundersen
2011-12-23  1:34   ` Cristian Rodríguez
2011-12-23  2:40   ` Jim Rees
2012-02-01 11:47   ` Tom Gundersen
2012-02-01 15:32     ` Chuck Lever
2012-02-01 16:37       ` Tom Gundersen
2012-02-01 18:16         ` Chuck Lever
2012-02-01 19:48           ` Tom Gundersen
2012-02-01 21:45         ` Lennart Poettering
2012-02-01 22:03           ` Chuck Lever
2012-02-01 22:30             ` Lennart Poettering
2012-02-03 17:03         ` Chuck Lever
2012-02-01 19:59     ` Chuck Lever
2014-11-21 16:43 [PATCH] rpcbind: " Steve Dickson
2014-11-21 16:43 ` [PATCH] rpcbind: add support for " Steve Dickson
2014-11-25 17:05 [PATCH] rpcbind: systemd socket activation (v2) Steve Dickson
2014-11-25 17:05 ` [PATCH] rpcbind: add support for systemd socket activation Steve Dickson
2014-11-26 12:48   ` Steve Dickson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100721215640.GA5648@tango.0pointer.de \
    --to=lennart@poettering.net \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).