template 939 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #!/bin/sh
  2. ########################################################################
  3. # Begin scriptname
  4. #
  5. # Description :
  6. #
  7. # Authors :
  8. #
  9. # Version : LFS x.x
  10. #
  11. # Notes :
  12. #
  13. ########################################################################
  14. ### BEGIN INIT INFO
  15. # Provides: template
  16. # Required-Start:
  17. # Should-Start:
  18. # Required-Stop:
  19. # Should-Stop:
  20. # Default-Start:
  21. # Default-Stop:
  22. # Short-Description:
  23. # Description:
  24. # X-LFS-Provided-By:
  25. ### END INIT INFO
  26. . /lib/boot/functions
  27. case "${1}" in
  28. start)
  29. boot_mesg "Starting..."
  30. loadproc
  31. ;;
  32. stop)
  33. boot_mesg "Stopping..."
  34. killproc
  35. ;;
  36. reload)
  37. boot_mesg "Reloading..."
  38. reloadproc
  39. ;;
  40. restart)
  41. ${0} stop
  42. sleep 1
  43. ${0} start
  44. ;;
  45. status)
  46. statusproc
  47. ;;
  48. *)
  49. echo "Usage: ${0} {start|stop|reload|restart|status}"
  50. exit 1
  51. ;;
  52. esac
  53. # End scriptname