server_photo_s85js/watcher/start.sh
2026-08-11 08:45:04 +02:00

14 lines
242 B
Bash

#!/bin/sh
echo "== Avvio watcher globale =="
inotifywait -m -r \
-e close_write,delete,move \
--format '%w %e %f' \
/app/photos \
/app/activities \
| node /app/watcher_logic.mjs &
echo "Watcher globale avviato."
tail -f /dev/null