Become superuser.
# /etc/init.d/filename stop |
Restart functionality.
# /etc/init.d/filename start |
Use the ps and grep commands to verify whether the service has been stopped or started.
# ps -ef | grep service |
Turn off NFS server functionality by typing:
# /etc/init.d/nfs.server stop # ps -ef | grep nfs # |
Restart the NFS services by typing:
# /etc/init.d/nfs.server start # ps -ef | grep nfs root 141 1 40 Jul 31 ? 0:00 /usr/lib/nfs/statd root 143 1 80 Jul 31 ? 0:01 /usr/lib/nfs/lockd root 245 1 34 Jul 31 ? 0:00 /usr/lib/nfs/nfsd -a 16 root 247 1 80 Jul 31 ? 0:02 /usr/lib/nfs/mountd root 1324 1318 11 13:29:52 pts/0 0:00 grep nfs |