I know quite a few of you are using OS X for your ColdFusion development so I thought I would post this in case anyone else has run into it.
On My new iMac, I was making a few changes to the apache config and issued a restart using the apachtctl restart command. I was greeted promptly with the following error:
/usr/sbin/apachectl: line 82: ulimit open files: cannot modify limit: Invalid argument
Now I know this works, I had been using it on my MacBook Pro to restart apache. So I did a little digging and apparently in the OS X 10.6.5 update, the apachectl script was updated and a bug was introduced. Luckily its a simple fix, head to line 64 of the /usr/sbin/apachectl file and change the following line:
ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"
Save the file and your apachectl script should work without issue.