Add support for using polling to detect changes.

Closes #4
This commit is contained in:
David Coppit
2018-08-17 21:53:30 -04:00
parent e65260ff52
commit f1d26df840
3 changed files with 23 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ This example is to run a permissions-repairing utility whenever there's a change
UMASK=0000
# This is important because chmod/chown will change files in the monitored directory
IGNORE_EVENTS_WHILE_COMMAND_IS_RUNNING=1
USE_POLLING=no
Since the `newperms` utility does an explicit "chown -R nobody:users", we need to use the UMAP and GMAP environment variables to update the user and group in the container so that it will match the host. For example:
@@ -73,5 +74,6 @@ This example tells SageTV to rescan its imported media when the media directory
GROUP_ID=0
UMASK=0000
IGNORE_EVENTS_WHILE_COMMAND_IS_RUNNING=0
USE_POLLING=no
We don't need to ignore events while the command is running because the wget command is a "fire and forget" asynchronous operation. We also don't need to use UMAP or GMAP.