How do I setup a monit script to check if a directory exists and create it if it doesn't

Posted by Timberford on Stack Overflow See other posts from Stack Overflow or by Timberford
Published on 2010-03-29T09:50:38Z Indexed on 2010/03/29 9:53 UTC
Read the original article Hit count: 142

Filed under:
|

In the monit documentation I can see there is a check directory command but I can't see any examples of how to use it to see if the directory exists and if it doesn't to create the directory using the mkdir command.

© Stack Overflow or respective owner

Related posts about mkdir

Related posts about monit