[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Monitoring multiple directories

From: Kimo Rosenbaum
Subject: Monitoring multiple directories
Date: Fri, 19 Oct 2012 14:46:09 -0700 (PDT)


Is there a way to monitor the timestamps on multiple directories and if any of
them changes run an exec script?

For example, our apache config is spread across several directories. If a file
in any of the directories changes I would like apache to be reloaded. It is
very likely that changes will be made to several files in several directories
at once. I could do this but it seems like monit would try to reload twice (at
the same time):

check directory vhosts path /path/to/vhosts
  if changed timestamp then exec "apache reload"

check directory modules path /path/to/modules
  if changed timestamp then exec "apache reload"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]