template 654 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/bin/sh
  2. ########################################################################
  3. # Begin $rc_base/init.d/
  4. #
  5. # Description :
  6. #
  7. # Authors :
  8. #
  9. # Version : 00.00
  10. #
  11. # Notes :
  12. #
  13. ########################################################################
  14. . /etc/sysconfig/rc
  15. . ${rc_functions}
  16. case "${1}" in
  17. start)
  18. boot_mesg "Starting..."
  19. loadproc
  20. ;;
  21. stop)
  22. boot_mesg "Stopping..."
  23. killproc
  24. ;;
  25. reload)
  26. boot_mesg "Reloading..."
  27. reloadproc
  28. ;;
  29. restart)
  30. ${0} stop
  31. sleep 1
  32. ${0} start
  33. ;;
  34. status)
  35. statusproc
  36. ;;
  37. *)
  38. echo "Usage: ${0} {start|stop|reload|restart|status}"
  39. exit 1
  40. ;;
  41. esac
  42. # End $rc_base/init.d/