#!/bin/sh
# script that runs on system stop
# 2013-09-26 09:50 created by niujiuru

. "$(dirname "$0")/set_env"
. "$(dirname "$0")/modules/funcs/functions.sh"
export_env

ORDER="
daemon
myapp
yfkj_sshd
"

if [ "$#" -gt 0 ]; then
  APPS="$*"
else
  APPS="$ORDER"
fi

for m in ${APPS}
do
  echo ":: stopping $m"
  call_module "$m" stop
done
