Comment 2 for bug 1052264

Revision history for this message
pdf (pdffs) wrote :

I can't see from the changelogs what this was meant to fix, but users already have methods of disabling nfsd if they don't want it to start, so this change in behaviour doesn't seem to be necessary, and breaks expected behaviour.

I can see two ways of solving this, either by simply deleting the `grep -q '^[[:space:]]*[^#]*/' $export_files` test (preferable since it restores expected behaviour), or by introducing an additional switch in /etc/default/nfs-kernel-server to control whether nfsd is started with empty exports (this could default to on to restore expected behaviour, but this still seems superfluous, since the user can simply disable the init job using existing mechanisms).