On Tue, Oct 28, 2014 at 9:36 PM, Tom H <tomh0...@gmail.com> wrote:
> Since Gentoo's rpcbind.service has "Wants=rpcbind.target" and
> "Before=rpcbind.target"", having nfs-server.service depend on
> rpcbind.target rather than rpcbind.service should work as long as
> rpcbind.service is enabled.
>
> But having "Requires=rpcbind.service" and "After=rpcbind.service",
> like nfsd.service has/had, means that you don't have to enable
> rpcbind.service.
>

I was just looking at that and thinking the same thing.  Nothing is
really forcing rpcbind to load the way things are specified right now.
If a service really requires another service to operate, it should say
that.  There is no problem doing that via a target, but then the
target still needs to pull it in.

There seems a general tendency in systemd to express dependencies as
"after" instead of "requires."  That is fine if the service doesn't
really require something else, but if there really is a true
dependency then it just causes problems when somebody doesn't notice
and fails to enable the other unit.

--
Rich

Reply via email to