3

Autocompletion shows

$ sudo service nfs- stop
nfs-blkmap         nfs-common         nfs-config         nfs-idmapd         nfs-kernel-server  nfs-mountd         nfs-server         nfs-utils          

What's the difference between nfs-server and nfs-kernel-server? Do I need to start both and stop both like

$ sudo service nfs-server start

$ sudo service nfs-kernel-server start

$ sudo service nfs-server stop

$ sudo service nfs-kernel-server stop
  • Which Linux distribution are you using? That information might be relevant here... – filbranden Mar 21 at 2:26
  • lubuntu 18.04. @filbranden – Tim Mar 21 at 2:31
2

The only difference is their name; nfs-kernel-server is an alias for nfs-server:

$ systemctl show -pNames nfs-server
Names=nfs-server.service nfs-kernel-server.service

Starting and stopping either one will start and stop the NFS server.

  • aptitude show nfs-server is informative. (-: – JdeBP Mar 21 at 8:08
  • @JdeBP but strictly speaking it informs about packages, not services. One needn’t try to install the nfs-server package to get the nfs-server service; it’s installed by the nfs-kernel-server package. (Put another way, Tim’s question about services remains, regardless of the package setup.) Amusingly, the package setup is the opposite of the service setup: the nfs-kernel-server package provides the nfs-server virtual package, but it’s the nfs-server service which is aliased as nfs-kernel-server. – Stephen Kitt Mar 21 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.