Bug#975873: Acknowledgement (Please hook zfs-share up to nfs-kernel-server stop+start)
Michael Biebl
biebl at debian.org
Sat Jan 9 14:15:17 GMT 2021
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20210109/a45d1eee/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list