incron
incron copied to clipboard
with newer kernels on centos UNUSEABLE
If I use a kernel-lt (5.4.118-1.el8.elrepo.x86_64) pkg from elrepo (centos8) then incron seems to be unuseable. I've these lines in incrontab of root:
/srv/backup/ IN_MODIFY,IN_CREATE,IN_MOVED_TO /usr/bin/chown root:backup $@/$# && /usr/bin/chmod 770 $@/$#
if I do something (touch etc) in the watched dir, then it does nothing... It seems to look at other dirs (see it in log), uses a lot of mem and then it crashes : systemd-coredump[44547]: Process 13214 (incrond) of user 0 dumped core.#012#012Stack trace of thread 13214:#012#0 0x00007fee231587ff n/a (n/a)
on a host with standard centos kernel works all as expected.
maybe the kernel inotify interface has changed?