mon-cmd 717 B

12345678910111213
  1. #!/usr/bin/env bash
  2. # This script passes the service dependent SERVICE_HOME to the common service script to run the command
  3. # Check AWS_CLOUDWATCH_HOME
  4. if [ -z "${AWS_CLOUDWATCH_HOME}" ]; then
  5. echo AWS_CLOUDWATCH_HOME is not set
  6. exit 1
  7. fi
  8. export SERVICE_HOME=${AWS_CLOUDWATCH_HOME}
  9. exec "${AWS_CLOUDWATCH_HOME}/bin/service" "$@"