1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #!/bin/sh
- ########################################################################
- # Begin nfs-client
- #
- # Description : Start statd
- #
- # Authors : Ken Moffat - ken@linuxfromscratch.org
- # Bruce Dubbs - bdubbs@linuxfromscratch.org
- #
- # Version : LFS 7.0
- #
- ########################################################################
- ### BEGIN INIT INFO
- # Provides: nfs-client
- # Required-Start: rpcbind
- # Should-Start:
- # Required-Stop: rpcbind
- # Should-Stop:
- # Default-Start: 3 4 5
- # Default-Stop: 0 1 2 6
- # Short-Description: Starts statd
- # Description: rpc.statd provides file locking on nfs.
- # X-LFS-Provided-By: BLFS / LFS 7.0
- ### END INIT INFO
- . /lib/lsb/init-functions
- #$LastChangedBy: bdubbs $
- #$Date: 2015-02-09 15:49:11 -0600 (Mon, 09 Feb 2015) $
- case "$1" in
- start)
- log_info_msg "Starting NFS statd..."
- start_daemon /usr/sbin/rpc.statd --no-notify
- evaluate_retval
- ;;
- stop)
- log_info_msg "Stopping NFS statd..."
- killproc /usr/sbin/rpc.statd
- evaluate_retval
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- status)
- statusproc /usr/sbin/rpc.statd
- ;;
- *)
- echo "Usage: $0 {start|stop|restart|status}"
- exit 1
- ;;
- esac
- # End /etc/init.d/nfs-client
|