#!/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
"

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

if [ -d "${APPRUNS_PATH}" ]; then
  echo ":: removing all files from ${APPRUNS_PATH}"
  rm -f ${APPRUNS_PATH}/* 2>/dev/null
fi
