what about "something" like this ?

#!/bin/bash
if test "/path/to/VERSION" -nt "/path/to/VERSION.track"
then
 # touch VERSION.track
 # restart apache
else
 nothing
fi


and run it in cron once every 5 minutes or so ....

On Fri, Aug 26, 2011 at 5:43 PM, Massimo Di Pierro <
[email protected]> wrote:

> How would you write a cron job that automatically restarts apache when
> the file web2py/VERSION is touched/modified and works on both ubuntu
> and fedora?

Reply via email to