stop 339 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. # script that runs on system stop
  3. # 2013-09-26 09:50 created by niujiuru
  4. . "$(dirname "$0")/set_env"
  5. . "$(dirname "$0")/modules/funcs/functions.sh"
  6. export_env
  7. ORDER="
  8. daemon
  9. myapp
  10. yfkj_sshd
  11. "
  12. if [ "$#" -gt 0 ]; then
  13. APPS="$*"
  14. else
  15. APPS="$ORDER"
  16. fi
  17. for m in ${APPS}
  18. do
  19. echo ":: stopping $m"
  20. call_module "$m" stop
  21. done