start.sh 327 B

1234567891011121314
  1. #!/bin/bash
  2. echo "Starting program.."
  3. echo "Checking cas server health.."
  4. wait-for-it.sh server.cas:8822 -t 0
  5. cd ${MODULE_HOME}
  6. ps -ef |grep nginx | grep -v grep | awk '{print $2}' | xargs kill -9 &>/dev/null
  7. ./nginx/sbin/nginx -c conf/nginx.conf -p ./nginx/
  8. [ $? -eq 0 ] && echo "Start success" || echo "Start failed"