#! /bin/sh
exec 2>&1
install -o ctf -m 0644 /dev/null /var/lib/ctf/puzzles.db
# Make an initial listing
./puzzled
exec inotifyd ./puzzled /var/lib/ctf/puzzles.db:w