Question
How to not run a gateway instance if the target server is down
I have a DirectoryWatcher gateway instance that runs every 10
min looking to do a series of actions when a file is added to a
directory on another server. This other server is down periodically
and my gateway instance fails. Then when the server comes back up,
I have to restart the gateway because it has failed. How do I tell
the gateway instance to not run if the server it is looking at is
down or the directory in this case is unavailable?
