On Sb, 09 ian 21, 10:24:44, Michael Biebl wrote:
> Am 09.01.21 um 09:46 schrieb Andrei POPESCU:
> 
> > If my understanding of systemd.unit(5) is correct this works as expected
> > when using the PartOf= directive: zfs-share is stopped or restarted
> > together with nfs-service, but not started.
> 
> Right, PartOf= works as documented.
> 
> >        PartOf=
> >            Configures dependencies similar to Requires=, but limited to
> >            stopping and restarting of units. When systemd stops or restarts
> >            the units listed here, the action is propagated to this unit. 
> > Note
> >            that this is a one-way dependency — changes to this unit do not
> >            affect the listed units.
> 
> 
> Can you elaborate why zfs-share.service uses
> PartOf=nfs-kernel-server.service ?

As far as I understand ZFS needs NFS to be up and running before being 
able share any of its file systems via NFS.

Since I'm new to ZFS myself and my experience with NFS is also limited 
I'll let the package Maintainer elaborate on that.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Attachment: signature.asc
Description: PGP signature

Reply via email to