4

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
2
  • Which Linux distribution are you using? That information might be relevant here...
    – filbranden
    Mar 21, 2019 at 2:26
  • lubuntu 18.04. @filbranden
    – Tim
    Mar 21, 2019 at 2:31

1 Answer 1

3

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.

2
  • aptitude show nfs-server is informative. (-:
    – JdeBP
    Mar 21, 2019 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. Mar 21, 2019 at 8:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .