Linux NFS development
 help / color / mirror / Atom feed
* [PATCH][V2] rpcbind.service: Not pulling the rpcbind.target
@ 2017-12-15 13:00 Steve Dickson
  2017-12-15 14:52 ` [systemd-devel] " Lennart Poettering
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Dickson @ 2017-12-15 13:00 UTC (permalink / raw)
  To: Linux NFS Mailing list; +Cc: Systemd Mailing List

According to systemd.special(7) manpage:

rpcbind.target
    The portmapper/rpcbind pulls in this target and orders itself
    before it, to indicate its availability. systemd automatically
    adds dependencies of type After= for this target unit to
    all SysV init script service units with an LSB header
    referring to the "$portmap" facility.

Signed-off-by: Steve Dickson <steved@redhat.com>
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1431574
---
 systemd/rpcbind.service.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in
index f8cfa9f..9dbc82c 100644
--- a/systemd/rpcbind.service.in
+++ b/systemd/rpcbind.service.in
@@ -6,8 +6,8 @@ RequiresMountsFor=@statedir@
 
 # Make sure we use the IP addresses listed for
 # rpcbind.socket, no matter how this unit is started.
-Wants=rpcbind.socket
-After=rpcbind.socket
+Requires=rpcbind.socket
+Before=rpcbind.target
 
 [Service]
 Type=notify
-- 
2.14.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [systemd-devel] [PATCH][V2] rpcbind.service: Not pulling the rpcbind.target
  2017-12-15 13:00 [PATCH][V2] rpcbind.service: Not pulling the rpcbind.target Steve Dickson
@ 2017-12-15 14:52 ` Lennart Poettering
  2017-12-15 18:26   ` Steve Dickson
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Poettering @ 2017-12-15 14:52 UTC (permalink / raw)
  To: Steve Dickson; +Cc: Linux NFS Mailing list, Systemd Mailing List

On Fr, 15.12.17 08:00, Steve Dickson (steved@redhat.com) wrote:

> According to systemd.special(7) manpage:
> 
> rpcbind.target
>     The portmapper/rpcbind pulls in this target and orders itself
>     before it, to indicate its availability. systemd automatically
>     adds dependencies of type After= for this target unit to
>     all SysV init script service units with an LSB header
>     referring to the "$portmap" facility.
> 
> Signed-off-by: Steve Dickson <steved@redhat.com>
> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1431574
> ---
>  systemd/rpcbind.service.in | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in
> index f8cfa9f..9dbc82c 100644
> --- a/systemd/rpcbind.service.in
> +++ b/systemd/rpcbind.service.in
> @@ -6,8 +6,8 @@ RequiresMountsFor=@statedir@
>  
>  # Make sure we use the IP addresses listed for
>  # rpcbind.socket, no matter how this unit is started.
> -Wants=rpcbind.socket
> -After=rpcbind.socket
> +Requires=rpcbind.socket
> +Before=rpcbind.target

You should still pull in rpcbind.target as the man page
says. i.e. "Wants=rpcbind.target" really should be there.

Lennart

-- 
Lennart Poettering, Red Hat

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [systemd-devel] [PATCH][V2] rpcbind.service: Not pulling the rpcbind.target
  2017-12-15 14:52 ` [systemd-devel] " Lennart Poettering
@ 2017-12-15 18:26   ` Steve Dickson
  0 siblings, 0 replies; 3+ messages in thread
From: Steve Dickson @ 2017-12-15 18:26 UTC (permalink / raw)
  To: Lennart Poettering; +Cc: Linux NFS Mailing list, Systemd Mailing List



On 12/15/2017 09:52 AM, Lennart Poettering wrote:
> On Fr, 15.12.17 08:00, Steve Dickson (steved@redhat.com) wrote:
> 
>> According to systemd.special(7) manpage:
>>
>> rpcbind.target
>>     The portmapper/rpcbind pulls in this target and orders itself
>>     before it, to indicate its availability. systemd automatically
>>     adds dependencies of type After= for this target unit to
>>     all SysV init script service units with an LSB header
>>     referring to the "$portmap" facility.
>>
>> Signed-off-by: Steve Dickson <steved@redhat.com>
>> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1431574
>> ---
>>  systemd/rpcbind.service.in | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in
>> index f8cfa9f..9dbc82c 100644
>> --- a/systemd/rpcbind.service.in
>> +++ b/systemd/rpcbind.service.in
>> @@ -6,8 +6,8 @@ RequiresMountsFor=@statedir@
>>  
>>  # Make sure we use the IP addresses listed for
>>  # rpcbind.socket, no matter how this unit is started.
>> -Wants=rpcbind.socket
>> -After=rpcbind.socket
>> +Requires=rpcbind.socket
>> +Before=rpcbind.target
> 
> You should still pull in rpcbind.target as the man page
> says. i.e. "Wants=rpcbind.target" really should be there.
Duly noted... and changed!

thanks!

steved.
> 
> Lennart
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-15 18:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-15 13:00 [PATCH][V2] rpcbind.service: Not pulling the rpcbind.target Steve Dickson
2017-12-15 14:52 ` [systemd-devel] " Lennart Poettering
2017-12-15 18:26   ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox