start-stop-status 459 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. # Copyright (C) 2000-2020 Synology Inc. All rights reserved.
  3. case $1 in
  4. start)
  5. ### Start this package.
  6. # run start command
  7. echo "the package has been started" > $SYNOPKG_TEMP_LOGFIL
  8. exit 0
  9. ;;
  10. stop)
  11. ### Stop this package.
  12. # run stop command
  13. echo "the package has been stopped" > $SYNOPKG_TEMP_LOGFILE
  14. exit 0
  15. ;;
  16. status)
  17. ### Check package alive.
  18. # run status command
  19. exit 0
  20. ;;
  21. killall)
  22. ;;
  23. log)
  24. exit 0
  25. ;;
  26. esac