Watch a different directory for incrond actions by default
This should help with #424 by switching the watched directories to a sub-directory of /run/alternc. There are many other scripts create and handle files in the /run/alternc that were causing incrond to start up quite often.
This commit is contained in:
parent
ef21e3e144
commit
6dc3b0d5a3
|
@ -114,10 +114,10 @@ SQLBACKUP_OVERWRITE=""
|
|||
ALTERNC_SLAVES=""
|
||||
|
||||
# File to look at for forced launch of update_domain (use incron)
|
||||
INOTIFY_UPDATE_DOMAIN="/run/alternc/inotify_update_domain.lock"
|
||||
INOTIFY_UPDATE_DOMAIN="/run/alternc/incron/inotify_update_domain.lock"
|
||||
|
||||
# File to look at for forced launch of do_actions (use incron)
|
||||
INOTIFY_DO_ACTION="/run/alternc/inotify_do_action.lock"
|
||||
INOTIFY_DO_ACTION="/run/alternc/incron/inotify_do_action.lock"
|
||||
|
||||
# AlternC Locations
|
||||
ALTERNC_HTML=""
|
||||
|
@ -273,6 +273,7 @@ NFS_QUOTA=no" >> $CONFIGFILE
|
|||
apparmor_parser -r -T -W "usr.sbin.named" || true
|
||||
fi
|
||||
fi
|
||||
mkdir -p /run/alternc/incron && chown alterncpanel::alterncpanel /run/alternc/incron
|
||||
touch /run/alternc/refresh_slave
|
||||
/usr/lib/alternc/slave_dns
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
/run/alternc/ IN_CREATE,IN_ATTRIB,IN_NO_LOOP /usr/lib/alternc/inotify_do_actions.sh
|
||||
/run/alternc/incron/ IN_CREATE,IN_ATTRIB,IN_NO_LOOP /usr/lib/alternc/inotify_do_actions.sh
|
||||
|
|
|
@ -1 +1 @@
|
|||
/run/alternc/ IN_CREATE,IN_ATTRIB,IN_NO_LOOP /usr/lib/alternc/inotify_update_domains.sh
|
||||
/run/alternc/incron/ IN_CREATE,IN_ATTRIB,IN_NO_LOOP /usr/lib/alternc/inotify_update_domains.sh
|
||||
|
|
Loading…
Reference in New Issue