#! /bin/sh
exec 2>&1
# Give everybody a chance to mount
sleep 5
# Make an initial listing
./puzzled
exec inotifyd ./puzzled /var/lib/ctf/puzzles.db:w