diff mbox

rpc-statd-notify: Don't wait for the network to come up

Message ID 1423490841-20097-1-git-send-email-steved@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Steve Dickson Feb. 9, 2015, 2:07 p.m. UTC
rpc-statd-notify only needs to wait for the network
interface to be configured not to be connected since
it forks into background and will wait 15mins for
the network to come up.

This decrease boot times when networks are not
and will not be connected.

Signed-off-by: Steve Dickson <steved@redhat.com>
Reported-By: Eric Work <work.eric@gmail.com>
---
 systemd/rpc-statd-notify.service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steve Dickson Feb. 9, 2015, 5:16 p.m. UTC | #1
On 02/09/2015 09:07 AM, Steve Dickson wrote:
> rpc-statd-notify only needs to wait for the network
> interface to be configured not to be connected since
> it forks into background and will wait 15mins for
> the network to come up.
> 
> This decrease boot times when networks are not
> and will not be connected.
> 
> Signed-off-by: Steve Dickson <steved@redhat.com>
> Reported-By: Eric Work <work.eric@gmail.com>
Committed... 

steved.
> ---
>  systemd/rpc-statd-notify.service | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/systemd/rpc-statd-notify.service b/systemd/rpc-statd-notify.service
> index 941afe5..a655445 100644
> --- a/systemd/rpc-statd-notify.service
> +++ b/systemd/rpc-statd-notify.service
> @@ -1,7 +1,7 @@
>  [Unit]
>  Description=Notify NFS peers of a restart
>  Requires=network-online.target
> -After=network-online.target nss-lookup.target
> +After=network.target nss-lookup.target
>  
>  # if we run an nfs server, it needs to be running before we
>  # tell clients that it has restarted.
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/systemd/rpc-statd-notify.service b/systemd/rpc-statd-notify.service
index 941afe5..a655445 100644
--- a/systemd/rpc-statd-notify.service
+++ b/systemd/rpc-statd-notify.service
@@ -1,7 +1,7 @@ 
 [Unit]
 Description=Notify NFS peers of a restart
 Requires=network-online.target
-After=network-online.target nss-lookup.target
+After=network.target nss-lookup.target
 
 # if we run an nfs server, it needs to be running before we
 # tell clients that it has restarted.