Liens :
apt-get install inotify-tools inotifywait -r / cat /proc/sys/fs/inotify/max_user_watches echo 50000 > /proc/sys/fs/inotify/max_user_watches inotifywait -e modify -r -m /var/log
source : https://www.geekarea.fr/wordpress/?p=783
while inotifywait -r -e modify -e move -e create -e delete --exclude .swp .; do pkill flask; sleep 1; flask run --host=0.0.0.0 & done