server.sh 405 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/bin/bash
  2. #
  3. # Description: server
  4. #
  5. # Source function library
  6. . /etc/init.d/functions
  7. NAME=SERVER_NAME
  8. USER=SERVER_USER
  9. # Start the server
  10. start (){
  11. }
  12. # Stop the server
  13. stop (){
  14. }
  15. # Return the status of the server
  16. status (){
  17. }
  18. # Restart the server
  19. restart (){
  20. }
  21. usage (){
  22. }
  23. case $1 in
  24. start)
  25. start
  26. ;;
  27. stop)
  28. stop
  29. ;;
  30. restart)
  31. restart
  32. ;;
  33. status)
  34. status
  35. ;;
  36. *)
  37. usage
  38. exit 1
  39. ;;
  40. esac