I have a service to check if a src.ods file was changed. When the system is rebooted, it keeps looping. When I update the file it starts to behave correctly (restarts only at file change). How to avoid the loop at system start before file change?
while inotifywait -q -m -e close_write /home/admin/data/src.ods; do
echo $(date -Iseconds) Restarting
done
0 Answers