• GNUmakefile

    285 286  
    750 750 # apache_* targets
    751 751 ##################
    752 752
    753 # _exp=`perl -e 'print $1 if "${LIMIT_VMEMORY_HTTPD}" =~ /.*(.)$/;'`;
    754 # _exp=`perl -e 'my $$e = ("${LIMIT_VMEMORY_HTTPD}"=~/.*(.)/)[0]; print $$e;'`; \
    755 # echo _exp=$${_exp}; \
    756
    753 757 apache_start: check_conf_installed
    754 758 @${call is_alive,${PROJ_VAR}/${PROJECT}/run/httpd.pid}; \
    755 759 FLAGS=`perl -e 'print " -DDEVELOPMENT" if lc "${DEVELOPMENT}" eq "yes";'`; \
     
    758 762 elsif (lc "${CRONOLOG_ENABLE}" eq "yes") { print " -DCRONOLOG"; } \
    759 763 else { print " -DFILELOG"; }'`; \
    760 764 if [ "${LIMIT_VMEMORY_HTTPD}" ]; then \
    761 LIMITS="${LIMIT_CMD} -v ${LIMIT_VMEMORY_HTTPD}"; \
    765 if [ x`uname` = x"FreeBSD" ]; then \
    766 LIMITS="${LIMIT_CMD} -v ${LIMIT_VMEMORY_HTTPD}"; \
    767 else \
    768 # echo "LIMIT_VMEMORY_HTTPD=${LIMIT_VMEMORY_HTTPD}"; \
    769 _exp=`expr "${LIMIT_VMEMORY_HTTPD}" : '.*\(.\)'`; \
    770 # echo _exp=$${_exp}; \
    771 _value=`expr "${LIMIT_VMEMORY_HTTPD}" : '\(.*\).'`; \
    772 # echo _value=$${_value}; \
    773 if [ "$${_exp}" = "m" ]; then \
    774 _value=`expr $$_value \* 1024 `; \
    775 fi; \
    776 # echo _value=$${_value}; \
    777 LIMITS="ulimit -S -v $${_value}"; \
    778 echo "DEBUG: running on Linux, LIMITS='$${LIMITS}'"; \
    779 fi; \
    762 780 fi; \
    763 781 if [ "$${ALIVE}" = "YES" ]; then \
    764 782 echo "WARNING: apache for project '${PROJECT}' already running"; \
    765 783 else \
    784 [ x`uname` = x"Linux" ] && $${LIMITS} && LIMITS=""; \
    766 785 if $${LIMITS} ${LOCAL}/apache/bin/httpd $${FLAGS} \
    767 786 -d ${PROJ_USR}/${PROJECT}/ \
    768 787 -f ${PROJ_USR}/${PROJECT}/conf/apache/httpd.conf; then \