home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20120521.etc.tar.gz / bradford.20120521.etc.tar / etc / init.d / nfsboot < prev    next >
Text File  |  2006-05-02  |  1KB  |  51 lines

  1. #! /bin/sh
  2. # Copyright (c) 2004 SuSE AG, Nuernberg, Germany.  All rights reserved.
  3. #
  4. # Author: Mads Martin Joergensen <mmj@suse.de>
  5. #
  6. # /etc/init.d/nfsboot
  7. #
  8. # System startup script for service(s) needed with NFS
  9. #
  10. ### BEGIN INIT INFO
  11. # Provides: nfsboot
  12. # Required-Start: $network $portmap
  13. # Required-Stop:
  14. # Default-Start: 3 5
  15. # Default-Stop:
  16. # Description: Service(s) needed with NFS
  17. ### END INIT INFO
  18.  
  19. SMNOTIFYBIN=/sbin/sm-notify
  20. OPTIONS=" -q"
  21. test -x $SMNOTIFYBIN || exit 5
  22.  
  23. . /etc/rc.status
  24.  
  25. rc_reset
  26.  
  27. case "$1" in
  28.     # It's a one shot binary notifying clients, so the below is
  29.     # ok in this special case.
  30.     start|restart|try-restart|reload|force-reload)
  31.     echo -n "Starting nfsboot (`/bin/basename $SMNOTIFYBIN`) "
  32.     $SMNOTIFYBIN $OPTIONS
  33.         rc_status -v
  34.     ;;
  35.     stop)
  36.     # we had rc_reset above, so we return 0 anyway
  37.     ;;
  38.     status)
  39.     # sm-notify is not a daemon, but a one-shot binary
  40.     # nothing to be checked, status is unknown
  41.     rc_failed 4
  42.         rc_status -v
  43.         ;;
  44.     *)
  45.     echo "Usage: $0 {start|stop|restart|try-restart|reload|force-reload|status}"
  46.     exit 1
  47.     ;;
  48. esac
  49. rc_exit
  50.  
  51.