Limit incrond scripts to watching a specific file

When they both watch the same directory, when a file is touched - eg,
/run/alternc/incron/inotify_do_action.lock both scripts are started
running in children of the top-level /usr/sbin/incrond script. When
those scripts finish, one or the other tends to start watching for all
the incron tables again (created more and more children each time).

Maybe it's a bug in incron.

Test:
 * Check number of running processes with ps faux | grep incron
 * Do an action, eg. chmod a folder in the web interace
 * Re-check the number of running processes, they should stay the same
 not increase
This commit is contained in:
Kienan Stewart 2020-10-13 16:21:36 -04:00 committed by Camille Lafitte
parent d3b1051543
commit c53eda9b9e
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
/run/alternc/incron/ IN_CREATE,IN_ATTRIB,IN_NO_LOOP /usr/lib/alternc/inotify_do_actions.sh
/run/alternc/incron/inotify_do_action.lock IN_CREATE,IN_ATTRIB,IN_NO_LOOP /usr/lib/alternc/inotify_do_actions.sh

View File

@ -1 +1 @@
/run/alternc/incron/ IN_CREATE,IN_ATTRIB,IN_NO_LOOP /usr/lib/alternc/inotify_update_domains.sh
/run/alternc/incron/inotify_update_domain.lock IN_CREATE,IN_ATTRIB,IN_NO_LOOP /usr/lib/alternc/inotify_update_domains.sh