Lennart Poettering wrote:
> inotify doesn't really provide such a feature, and fanotify is
> crap.
Leaving aside any other issues with fanotify, it doesn't seem to provide
this feature either; "man fanotify" says "Fanotify monitoring of
directories is not recursive: to monitor subdirectories under
Am 07.04.2016 um 20:11 schrieb Florian Lindner:
> Hello,
> I want to have a unit that monitors a path and commits automatically to
> git whenever something changes. It usually works, like that:
>
> # cat [email protected]
> [Unit]
> Description=Automatic commit for %f
>
> [Service]
> Type = one
On Thu, 07.04.16 20:11, Florian Lindner ([email protected]) wrote:
> It basically works but has two issues:
>
> 1) The path unit does not seem to monitor the path recursively,
> therefore I don't get a commit when a file in a subdirectory changes
inotify doesn't really provide such a feature,
Hello,
I want to have a unit that monitors a path and commits automatically to
git whenever something changes. It usually works, like that:
# cat [email protected]
[Unit]
Description=Automatic commit for %f
[Service]
Type = oneshot
Nice = 10
# git returns 1 if there is nothing to commit
Succes