start-stop-status 467 B

1234567891011121314151617181920212223242526272829
  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. ./app
  8. echo "the package has been started" > $SYNOPKG_TEMP_LOGFIL
  9. exit 0
  10. ;;
  11. stop)
  12. ### Stop this package.
  13. # run stop command
  14. echo "the package has been stopped" > $SYNOPKG_TEMP_LOGFILE
  15. exit 0
  16. ;;
  17. status)
  18. ### Check package alive.
  19. # run status command
  20. exit 0
  21. ;;
  22. killall)
  23. ;;
  24. log)
  25. exit 0
  26. ;;
  27. esac