[~]% sysctl -d kern.maxfiles kern.maxfiles: Maximum number of files [~]% sysctl -d kern.maxfilesperproc kern.maxfilesperproc: Maximum files allowed open per process [~]% sysctl kern.maxfiles kern.maxfiles: 12328 [~]% sysctl kern.maxfilesperproc kern.maxfilesperproc: 11095
fswatch, albeit sporting for now a GNU license, could perhaps help? https://github.com/emcrisostomo/fswatch
pkgit even gives you a nice little warning that you may want to bump the kern.maxfiles value
fswatch: https://github.com/emcrisostomo/fswatch. But could only get it to compile in FreeBSD 10 and I needed something that worked in v9. The issue with
fswatchis that is written in c++ and the c++ compiler in FreeBSD 9.x is not working properly.
fswatchin the ports but it is not related to the
fswatchI just mentioned. The
fswatchin the ports is a hash generator for files...security/fswatch