Blackd
Leaving a web gui in a chrooted environment and still giving the possibility to change files and still receive an output is possible only with something out the chroot jail that, listening for changes, will act launching a command outside the chroot . For example, launching "pfctl -f /chroot/pf.conf" when something changes pf.conf
The most obvious solution for this, is to launch a cron script constantly checking every N seconds for a file modification, and, on a positive check, launch the appropriate command. It’s not an "elegant" solution, and it could require a lot of time when you have a lot of files, and last but not least, you'll never get the whole thing immediately, you'll still have to wait for the cron.
But on OpenBSD, and *BSD, you can use kqueue(2), the kernel event notification mechanism, for monitoring the changes you make to a file. This open a wide range of possibilities to reach our scopes.
This is how blackd works. We have an /etc/blackd.conf file with the syntax "file:command". On every change to file, command is executed.
http://nembokid.biz/blackd

