Re: [systemd-devel] [PATCH] rpcbind: systemd socket activation (v2)

2014-11-26 Thread Steve Dickson


On 11/25/2014 05:40 PM, J. Bruce Fields wrote:
> On Tue, Nov 25, 2014 at 12:05:32PM -0500, Steve Dickson wrote:
>> This is based on a patch originally posted by Lennart Poettering:
>> .
> 
> Have you run this by the reporter
> of https://bugzilla.redhat.com/show_bug.cgi?id=1158164 ?
> 
> Because he tried applying that old patch and found he was still having
> problems.
> 
> But they may well be problems that are fixed by your version, or he may
> have applied it incorrectly, I didn't try to figure it out.
If he was using the systemd scripts in the patch then there would be
problems... which is the reason I eliminated them 

steved.
> 
> --b.
> 
>>
>> That patch was not merged due to the lack of a shared library and
>> as systemd was seen to be too Fedora specific.
>>
>> Systemd now provides a shared library, and it is (or very soon will
>> be) the default init system on all the major Linux distributions.
>>
>> This version of the patch has three changes from the original:
>>
>>  * It uses the shared library.
>>  * It comes with unit files.
>>  * It is rebased on top of master.
>>
>> Please review the patch with "git show -b" or otherwise ignoring the
>> whitespace changes, or it will be extremely difficult to read.
>>
>> v5: incorporated comments on the PKG_CHECK_MODULES macro.
>>
>> v4: reorganized the changes to make the diff easier to read
>>  remove systemd scripts.
>>
>> v3: rebase
>>  fix typos
>>  listen on /run/rpcbind.sock, rather than /var/run/rpcbind.sock (the
>>  latter is a symlink to the former, but this means the socket can be
>>  created before /var is mounted)
>>  NB: this version has been compile-tested only as I no longer use
>>  rpcbind myself
>> v2: correctly enable systemd code at compile time
>>  handle the case where not all the required sockets were supplied
>>  listen on udp/tcp port 111 in addition to /var/run/rpcbind.sock
>>  do not daemonize
>>
>> Tom Gundersen (1):
>>   rpcbind: add support for systemd socket activation
>>
>>  Makefile.am   |  6 +
>>  configure.ac  | 12 +
>>  src/rpcbind.c | 81 
>> ++-
>>  3 files changed, 93 insertions(+), 6 deletions(-)
>>
>> -- 
>> 1.9.3
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>> the body of a message to majord...@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH] rpcbind: systemd socket activation (v2)

2014-11-25 Thread Steve Dickson
This is based on a patch originally posted by Lennart Poettering:
.

That patch was not merged due to the lack of a shared library and
as systemd was seen to be too Fedora specific.

Systemd now provides a shared library, and it is (or very soon will
be) the default init system on all the major Linux distributions.

This version of the patch has three changes from the original:

 * It uses the shared library.
 * It comes with unit files.
 * It is rebased on top of master.

Please review the patch with "git show -b" or otherwise ignoring the
whitespace changes, or it will be extremely difficult to read.

v5: incorporated comments on the PKG_CHECK_MODULES macro.

v4: reorganized the changes to make the diff easier to read
remove systemd scripts.

v3: rebase
fix typos
listen on /run/rpcbind.sock, rather than /var/run/rpcbind.sock (the
latter is a symlink to the former, but this means the socket can be
created before /var is mounted)
NB: this version has been compile-tested only as I no longer use
rpcbind myself
v2: correctly enable systemd code at compile time
handle the case where not all the required sockets were supplied
listen on udp/tcp port 111 in addition to /var/run/rpcbind.sock
do not daemonize

Tom Gundersen (1):
  rpcbind: add support for systemd socket activation

 Makefile.am   |  6 +
 configure.ac  | 12 +
 src/rpcbind.c | 81 ++-
 3 files changed, 93 insertions(+), 6 deletions(-)

-- 
1.9.3

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH] rpcbind: systemd socket activation

2014-11-21 Thread Steve Dickson
This is a re-post of Tom's patch he posted a while back.
I made the following changes.

* Reorganized the changes so the diff is more readable
  by using a goto instead of indenting 268 lines.

* Removed the systemd scripts because they just didn't
  work and won't going to work. I did spend some time 
  on them but debugging was not worth the time since 
  the current ones worked. I'm more than willing to 
  revisit this down the line.

Finally I would like to thank Tom for all of his help! 
It was much appreciated!

Tom Gundersen (1):
  rpcbind: add support for systemd socket activation

 Makefile.am   |  6 +
 configure.ac  | 10 
 src/rpcbind.c | 81 ++-
 3 files changed, 91 insertions(+), 6 deletions(-)

-- 
2.1.0

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel