[SOLVED] OH trying to read the readme file after every 3-5 seconds

  • Platform information:
    • Hardware: Orange PI
    • OS: DietPi
    • Java Runtime Environment: Zulu 8 (1.8.0_181)
    • openHAB version: 2.5.M3
  • Issue of the topic:
    I issued the following command to check what the system was doing generally.
inotifywait -mr --exclude 0  /

And got this result

dietpi@DietPi:~$ inotifywait -mr --exclude 0  /
Setting up watches.  Beware: since -r was given, this may take a while!
Watches established.
/proc/553/net/ OPEN if_inet6
/proc/553/net/ ACCESS if_inet6
/proc/553/net/ CLOSE_NOWRITE,CLOSE if_inet6
/proc/257/ OPEN cgroup
/proc/257/ ACCESS cgroup
/proc/257/ CLOSE_NOWRITE,CLOSE cgroup
/usr/share/openhab2/addons/ OPEN README
/usr/share/openhab2/addons/ ACCESS README
/usr/share/openhab2/addons/ CLOSE_NOWRITE,CLOSE README
/usr/share/openhab2/addons/ OPEN README
/usr/share/openhab2/addons/ ACCESS README
/usr/share/openhab2/addons/ CLOSE_NOWRITE,CLOSE README
/usr/share/openhab2/addons/ OPEN README
/usr/share/openhab2/addons/ ACCESS README
/usr/share/openhab2/addons/ CLOSE_NOWRITE,CLOSE README
/usr/share/openhab2/addons/ OPEN README
/usr/share/openhab2/addons/ ACCESS README
/usr/share/openhab2/addons/ CLOSE_NOWRITE,CLOSE README
/usr/share/openhab2/addons/ OPEN README
/usr/share/openhab2/addons/ ACCESS README
/usr/share/openhab2/addons/ CLOSE_NOWRITE,CLOSE README
/usr/share/openhab2/addons/ OPEN README
/usr/share/openhab2/addons/ ACCESS README
/usr/share/openhab2/addons/ CLOSE_NOWRITE,CLOSE README

Can anyone explain why is this thing happening. Is it intended?? or unusual??
Can someone try this command if your setup is on a RaspberryPi instead and tell if the result is similar?? Install with the following commands

sudo apt-get install inotify-tools
sudo nano /proc/sys/fs/inotify/max_user_watches

Increase number to 819200 and then save and then give command

 inotifywait -mr --exclude 0  /

The system checks the addons directory every minute (or so) to see if there are any bundles that need to be loaded. I suspect the directory watcher is picking up the README file. I’m not sure why it would be happening every 3-4 seconds, however.

1 Like

Is there anything that can be done about it??

Remove the file.

Thanks a lot, it did the trick :smile: