Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not seeing changes in subdirs #78

Open
symcbean opened this issue Feb 12, 2021 · 0 comments
Open

Not seeing changes in subdirs #78

symcbean opened this issue Feb 12, 2021 · 0 comments

Comments

@symcbean
Copy link

symcbean commented Feb 12, 2021

The installation on my Ubuntu 18.04 (incron 0.5.10, installed from repo) sees changes in specified directories but not in sub-directories. Example config:

/etc/nginx IN_CLOSE_WRITE,IN_DELETE,IN_MOVE_FROM,IN_MOVE_TO /usr/local/bin/replicate.php sslproxy $@ $# $%

The man page suggests that the default behaviour is detect in subdirs, but I did add an explicit "recursive=true". incrond did not complain about my config file, but the behaviour is unchanged.

/etc/nginx IN_CLOSE_WRITE,IN_DELETE,IN_MOVE_FROM,IN_MOVE_TO,recursive=true /usr/local/bin/replicate.php sslproxy $@ $# $%

The output below shows the effects of touching a file in a sub-directory (incron does not fire) and in the watched directory (incron fires). The loaded config is the second example above with "recursive=true":

root@myhost:~# systemctl status incron
? incron.service - file system events scheduler
   Loaded: loaded (/lib/systemd/system/incron.service; enabled; vendor preset: enab
   Active: active (running) since Fri 2021-02-05 11:35:59 GMT; 1 weeks 0 days ago
 Main PID: 30607 (incrond)
    Tasks: 1 (limit: 2318)
   CGroup: /system.slice/incron.service
           +-30607 /usr/sbin/incrond

Feb 12 09:41:13 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:18 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:18 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:18 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:21 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:21 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:21 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:21 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 11:02:09 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 11:59:18 myhost.mynet incrond[30607]: system table sslproxy.incrontab
root@myhost:~# touch /etc/nginx/sites-available/colintest
root@myhost:~# systemctl status incron
? incron.service - file system events scheduler
   Loaded: loaded (/lib/systemd/system/incron.service; enabled; vendor preset: enab
   Active: active (running) since Fri 2021-02-05 11:35:59 GMT; 1 weeks 0 days ago
 Main PID: 30607 (incrond)
    Tasks: 1 (limit: 2318)
   CGroup: /system.slice/incron.service
           +-30607 /usr/sbin/incrond

Feb 12 09:41:13 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:18 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:18 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:18 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:21 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:21 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:21 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:21 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 11:02:09 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 11:59:18 myhost.mynet incrond[30607]: system table sslproxy.incrontab
root@myhost:~# touch /etc/nginx/colintest
root@myhost:~# systemctl status incron
? incron.service - file system events scheduler
   Loaded: loaded (/lib/systemd/system/incron.service; enabled; vendor preset: enab
   Active: active (running) since Fri 2021-02-05 11:35:59 GMT; 1 weeks 0 days ago
 Main PID: 30607 (incrond)
    Tasks: 1 (limit: 2318)
   CGroup: /system.slice/incron.service
           +-30607 /usr/sbin/incrond

Feb 12 09:41:18 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:18 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:18 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:21 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:21 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:21 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 09:41:21 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 11:02:09 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Feb 12 11:59:18 myhost.mynet incrond[30607]: system table sslproxy.incrontab
Feb 12 12:10:16 myhost.mynet incrond[30607]: (system::sslproxy.incrontab) CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant