#592691 incron: Incron needs a new symbol to track files by path

Package:
incron
Source:
incron
Description:
cron-like daemon which handles filesystem events
Submitter:
"Karl O. Pinc"
Date:
2015-03-29 09:33:13 UTC
Severity:
wishlist
#592691#5
Date:
2010-08-12 04:06:12 UTC
From:
To:
Incron exhibits somewhat inconsistent behavior in
that it tracks files by inode (I assume) but
these files are specified by path in the
incrontab.  So, if you delete a file and
re-create it, as some commonly used editors do
as part of the editing process, the file is no
longer tracked -- until incrond is restarted or
(I assume) the incrontab file is modified at
which point the (new) file is again tracked.
This 'impedance mismatch' is a bit odd.

I assume this is the intended design.  It is the
behavior I observe.

If nothing else a note of this issue should be
made in the documentation.

It would be nice if incron had a new symbol, say
IN_TRACK_PATH, that keeps the tracking associated
with the pathname given in the config file.  I
assume this could be done by monitoring the
parent directory for changes and watching for
the file name to come into existence, the name
of the file to change, etc.

I would think that the desire to track changes
to a file that exists in a particular filesystem
location is rather common.  Absent this feature
it's up to the user to repeatedly script such
things.

Note that such a change alters the meaning of
existing symbols, e.g., changing the file name
would be equivalent to deleting the file, etc.
I don't know whether it makes sense to re-use
the existing symbols in this new context or
to come up with entirely new ones.

#592691#12
Date:
2010-08-18 22:54:54 UTC
From:
To:
forwarded 592691 http://bts.aiken.cz/view.php?id=469
thanks

Hi Karl,

I've filed a bug in upstream bug tracker, see
http://bts.aiken.cz/view.php?id=469

Regards,

M.