On 7/22/24 9:18 AM, Paul Menzel wrote:
Dear NFS folks,
Since the beginning in 2014 with commit 929aaa7eeab1 (Added
systemd/nfs-server.service) the systemd service unit
`systemd/nfs-server.service` has
Description=NFS server and services
[…]
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=-/usr/sbin/exportfs -r
ExecStart=/usr/sbin/rpc.nfsd
ExecStop=/usr/sbin/rpc.nfsd 0
ExecStopPost=/usr/sbin/exportfs -au
ExecStopPost=/usr/sbin/exportfs -f
and this is still present today as of commit b76dbaa48f7c (exports(5):
update and correct information about subdirectory exports) [1].
Is flushing out the kernel’s export table with `exportfs -au` really
necessary when stopping the NFS server?
What problem does it cause to clean things up
when the server is shutdown?
steved.
Kind regards,
Paul
[1]:
https://git.linux-nfs.org/?p=steved/nfs-utils.git;a=blob;f=systemd/nfs-server.service;h=ac17d5286d3bf93d693fea5554eb439425f6857c;hb=b76dbaa48f7c239accb0c2d1e1d51ddd73f4d6be