[systemd-devel] [PATCH] systemd: Have rpc-statd-notify.service Require network.target

Andrei Borzenkov arvidjaar at gmail.com
Tue Mar 3 11:06:57 PST 2015


В Tue,  3 Mar 2015 13:36:43 -0500
Steve Dickson <steved at redhat.com> пишет:

> Its been reported that having the rpc-statd-notify service
> depend on network.target instead network-online.target
> decrease boot times as much as 10 seconds on some
> installs
> 

If it does not need network when strting, it should not depend on
network at all. This will probably decrease boot time even more.

If it does need network, it should depend on network-online, this is
correct.

> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1183293
> 
> Signed-off-by: Steve Dickson <steved at redhat.com>
> Reported-by: Eric Work <work.eric at gmail.com>
> ---
>  systemd/rpc-statd-notify.service |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/systemd/rpc-statd-notify.service b/systemd/rpc-statd-notify.service
> index a655445..b608a14 100644
> --- a/systemd/rpc-statd-notify.service
> +++ b/systemd/rpc-statd-notify.service
> @@ -1,6 +1,6 @@
>  [Unit]
>  Description=Notify NFS peers of a restart
> -Requires=network-online.target
> +Requires=network.target
>  After=network.target nss-lookup.target
>  
>  # if we run an nfs server, it needs to be running before we



More information about the systemd-devel mailing list