bonidier / synodlna-index

synchronize your Synology NAS DLNA shares with synoindex and inotifywait
3 stars 3 forks source link

inotifywait crashes #4

Open andlommy opened 9 years ago

andlommy commented 9 years ago

On my system inotifywait has a tendency to crash after a while, not straight away but after a few days. Does the current script check if inotifywait is running and restart it if it failed?

bonidier commented 9 years ago

Hi @andlommy , thanks for using and your feedback !

Did you get logs about inotifywait crash reasons ?

/opt/etc/init.d/S99synodlna-reindex-inotify log

You should also look at inotify-tools issues, maybe one of them will match this behavior https://github.com/rvoicilas/inotify-tools/issues

Currently, the init.d script doesn't check constantly if inotifywait is up, only if it's started, but that's a nice idea !

andlommy commented 9 years ago

Fault i get is segmentation fault. Good pointer to inotify-tools package, however i've done all tests and no failures. This only happens after after a few days of inotifywait running