nfs-client 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #!/bin/sh
  2. ########################################################################
  3. # Begin nfs-client
  4. #
  5. # Description : Start statd
  6. #
  7. # Authors : Ken Moffat - ken@linuxfromscratch.org
  8. # Bruce Dubbs - bdubbs@linuxfromscratch.org
  9. #
  10. # Version : LFS 7.0
  11. #
  12. ########################################################################
  13. ### BEGIN INIT INFO
  14. # Provides: nfs-client
  15. # Required-Start: rpcbind
  16. # Should-Start:
  17. # Required-Stop: rpcbind
  18. # Should-Stop:
  19. # Default-Start: 3 4 5
  20. # Default-Stop: 0 1 2 6
  21. # Short-Description: Starts statd
  22. # Description: rpc.statd provides file locking on nfs.
  23. # X-LFS-Provided-By: BLFS / LFS 7.0
  24. ### END INIT INFO
  25. . /lib/lsb/init-functions
  26. #$LastChangedBy: bdubbs $
  27. #$Date: 2015-02-09 15:49:11 -0600 (Mon, 09 Feb 2015) $
  28. case "$1" in
  29. start)
  30. log_info_msg "Starting NFS statd..."
  31. start_daemon /usr/sbin/rpc.statd --no-notify
  32. evaluate_retval
  33. ;;
  34. stop)
  35. log_info_msg "Stopping NFS statd..."
  36. killproc /usr/sbin/rpc.statd
  37. evaluate_retval
  38. ;;
  39. restart)
  40. $0 stop
  41. sleep 1
  42. $0 start
  43. ;;
  44. status)
  45. statusproc /usr/sbin/rpc.statd
  46. ;;
  47. *)
  48. echo "Usage: $0 {start|stop|restart|status}"
  49. exit 1
  50. ;;
  51. esac
  52. # End /etc/init.d/nfs-client