#38628: apachectl script attempts to run ulimit and fails -------------------------------------+-------------------------------- Reporter: cmc@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: apache ulimit apachectl | Port: apache2 -------------------------------------+-------------------------------- The `apachectl` script included with apache2 2.2.4_0 includes a line that attempts to set the ulimit for the server. The arguments are not correct for Mac OS X, and thus fail: {{{ $ sudo /opt/local/apache2/bin/apachectl restart /opt/local/apache2/bin/apachectl: line 70: ulimit: open files: cannot modify limit: Invalid argument }}} The script sets `ULIMIT_MAX_FILES` to "{{{ulimit -S -n `ulimit -H -n`}}}". Dropping the `-n` from the soft-limit setting command allows it to work. Apple's `apachectl` (in `/usr/sbin/apachectl`) simply defines `ULIMIT_MAX_FILES` as nothing (`""`), which also works fine. -- Ticket URL: <https://trac.macports.org/ticket/38628> MacPorts <http://www.macports.org/> Ports system for OS X