[systemd-devel] fstab generator and nfs-client.target

Felipe Sateler fsateler at debian.org
Mon Jul 27 08:19:46 PDT 2015


On Mon, 27 Jul 2015 16:51:02 +0200, Lennart Poettering wrote:

> Coming back to your original question, there are two options:
> 
> 1) nfs-common becomes a normal multi-user.target service, but adds
>    Before=remote-fs-pre.target. This way, the service is started at
>    boot, and not only on first use.

This would have the side effect of nfs-common not being started in single 
user mode, which is not likely to be the wanted outcome.

> 
> 2) nfs-common makes itself pulled in by network-online.target, and
>    orders itself before that. This way, the service is started when the
>    network is upped.

Why isn't WantedBy=remote-fs.target an option? This would make any auto 
remote mount pull nfs-common, but if none is then it won't be started 
(unless that part of local-fs doesn't apply to remote-fs). 


-- 
Saludos,
Felipe Sateler



More information about the systemd-devel mailing list