Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cbiggins
Created July 29, 2014 10:52
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 cbiggins/9a28a91765a4ef06e2cc to your computer and use it in GitHub Desktop.
Save cbiggins/9a28a91765a4ef06e2cc to your computer and use it in GitHub Desktop.
Monit - check for a mount and create it if it doesn't exist.
check directory nfs1 path /mnt/nfs/backups
start program = "/bin/bash -c '/bin/mkdir /mnt/nfs && /bin/chmod 0775 /mnt/nfs && /bin/mount /mnt/nfs'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment