How to trigger commands on File/Directory changes with Incron on Debian

Discussion in 'HOWTO-Related Questions' started by okamzol, Sep 25, 2015.

  1. okamzol

    okamzol New Member

    Nice tool I've never heared of before - so thanks for the tutorial :)

    But I've a question you maybe can answer:
    When I create an incrontab entry for the first time it will be recognized by the system (syslog: incrond[28722]: table for user xxx created, loading). Now, when I recall "incrontrab -e" and change or add a new entry and save it, the user gets message "table updated". But when watching syslog I see "cannot create watch for user xxx: (16) Device or resource busy" everytime for updates. When user removes the whole incrontab ("incrontab -r") and adds new one containing all entries including previously changed or newly added ones - it works. Do you have an idea why? (Info: Installed incron on Ubuntu 14.04 LTS)

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I've no Idea. Editing the incrontab worked for me without an error in syslog.
     
  3. sjau

    sjau Local Meanie Moderator

    For incron and cron I prefer working with a cron.txt or incron.txt file (where I don't run ISPC).
    I just edit the jobs in those files and save them. Then I add them to cron/incron by running:
    Code:
    crontab cron.txt
    
    or
    Code:
    incrontab incron.txt
    
    If you have troubles editing the in/crontabs directly, try it with the files as I do.
     
  4. okamzol

    okamzol New Member

    Working with files works fine. Thanks
     

Share This Page