Am 09.01.21 um 12:32 schrieb Andrei POPESCU:
Additionally zfsutils-linux is in contrib, so even if it does work
reliably it's likely unsuitable to apply such a fix to the
nfs-kernel-server package.

You could ship a drop-in snippet in zfsutils-linux extending the nfs-kernel-server service.

In my limited testing a WantedBy=nfs-server.service seems to do the
trick (somehow I was under the impression this can be used only with
targets).

Targets are typically used to group together services and to generalise things. But WantedBy=nfs-server.service is perfectly valid. It has the downside to be tied to the nfs-server.service name.

Still curious why a stop/start is triggered by needrestart though.
That, and why needrestart uses stop/start instead of restart.


Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to