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 ?

I never used ZFS, so I basically have zero knowledge how it is supposed to work.

Regards,
Michael



Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to