Created
July 16, 2012 20:03
-
-
Save kenmazaika/3124697 to your computer and use it in GitHub Desktop.
monit-wrapper.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| { | |
| echo "MONIT-WRAPPER date" | |
| date | |
| echo "MONIT-WRAPPER env" | |
| env | |
| echo "MONIT-WRAPPER $@" | |
| $@ | |
| R=$? | |
| echo "MONIT-WRAPPER exit code $R" | |
| } >/tmp/monit.log 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment