Skip to content

Instantly share code, notes, and snippets.

@lucianosousa
Created May 31, 2015 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucianosousa/ab8548660249b1e8871a to your computer and use it in GitHub Desktop.
Save lucianosousa/ab8548660249b1e8871a to your computer and use it in GitHub Desktop.
crontab -e
* * * * * /bin/bash -l -c 'sh /home/ec2-user/scripts/monitor.sh postgresql93 redis-server nginx memcached >> /var/log/cron 2>&1'
* * * * * /bin/bash -l -c 'sleep 30; sh /home/ec2-user/scripts/monitor.sh postgresql93 redis-server nginx memcached >> /var/log/cron 2>&1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment