Add IGNORE_EVENTS_WHILE_COMMAND_IS_RUNNING feature

This commit is contained in:
David Coppit
2015-06-24 07:28:37 -04:00
parent e1300c6c52
commit e095a31553
2 changed files with 26 additions and 1 deletions

View File

@@ -26,3 +26,8 @@ MIN_PERIOD=10:00
# In this example, we call a SageTV remote API to trigger a rescan of the imported media library. The command assumes
# that we've installed the plugin called "sagex-services - SageTV Remote API Services".
COMMAND="wget -nv -O /dev/null --auth-no-challenge http://sage:frey@192.168.1.102:8080/sagex/api?c=RunLibraryImportScan&1="
# This is a very good idea if your command modifies the WATCH_DIR in any way. You can easily trigger yourself because
# most programs don't worry about checking the current state before making a change. e.g. chmod will set the mode of a
# file even if it already has that mode.
IGNORE_EVENTS_WHILE_COMMAND_IS_RUNNING=1