linux - inotifywait running daemon mode giving error Couldn't initialize inotify -


i running inotifywait (inotify-tools-3.14-1) in daemon mode, however, gave following error , no watches established. also, since within while loop, there many inotifywait daemon processes created.

i have no such problem if running --monitor instead of --daemon. can fixing it? lot.

"couldn't initialize inotify. running linux 2.6.13 or later, , config_inotify option enabled when kernel compiled? if so, mysterious has gone wrong. please e-mail radu.voicilas@gmail.com , mention saw message."

below code:

while true  # run indefinitely   inotifywait --daemon --outfile /tmp/daemon.log --event close_write --format '%w%f %e %t' --timefmt '%f %t' $folder |  while read eventinfo              call_another_fun $eventinfo         break      done    done 

when there many inotify processes running in background, "couldn't initialize inotify..." error message. pkill inotify solved this.


Comments

Popular posts from this blog

How to show in django cms breadcrumbs full path? -

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -