No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cron-exec.sh 199B

1234567891011
  1. #! /bin/bash
  2. ENV=/env.sh
  3. LOG=/cron.log
  4. HEALTH_FILE=/unhealthy
  5. touch $ENV
  6. source $ENV
  7. # Execute command and write output to log
  8. $@ 2>> $LOG && rm -f $HEALTH_FILE || { touch $HEALTH_FILE; exit 1; }