You are not logged in.

#1 2013-07-10 08:06:08

justin-8
Member
From: Queensland, Australia
Registered: 2013-06-18
Posts: 53

Incron not behaving as expected

Hi everyone,

So I'm trying to use incron to run a script, so that whenever a file is added to my repo, it will be updated. However; incron is not behaving as I think it should be. for example, if I have this in /etc/incron.d/repo.incron

 /srv/repo/x86_64/ IN_CLOSE_WRITE update-repo "$@" "$#"

in the journal I can see the following:

incrond[10557]: (system::repo.incron) CMD (update-repo "/srv/repo/x86_64/" "unigine-heaven-4.0-1-x86_64.pkg.tar.xz"

However the script is never run. I've got right at the top of the script 'echo test > /tmp/test', and yet /tmp/test is never touched or created.

I've tried putting the command in 'incrontab -e' as root as well, which results in exactly the same behaviour.

Hopefully I've missed something really basic, but the fact that it is printing to the journal that it is going to do something; and then not doing it doesn't seem quite right to me.

Ideas?

Last edited by justin-8 (2013-07-10 08:06:55)

Offline

#2 2013-07-10 09:04:49

justin-8
Member
From: Queensland, Australia
Registered: 2013-06-18
Posts: 53

Re: Incron not behaving as expected

As expected: something basic. incron ignores $PATH and requires the full path to the executable.

Offline

Board footer

Powered by FluxBB