Adam Prime wrote:
Carl Brewer wrote:
And in the (RHEL/CentOS format) init.d script
start() {
        echo -n $"Starting $prog: "
        ulimit -S -c unlimited >/dev/null 2>&1
        LANG=$HTTPD_LANG daemon $httpd $OPTIONS -f $conf
        RETVAL=$?
        echo
        ulimit -c
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}



Why are there two ulimit lines in here? Does the second one undo what the first one did, causing cores to not get generated?

The second one is a debugging thing, it just prints to STDOUT what the ulimit has been set to.


When I needed to get cores generated I did exactly what it said here:

http://httpd.apache.org/dev/debugging.html#crashes

namely, that I ran ulimit in the shell, then in that same shell started apache with apachectl. I was able to generate cores that way.

Sure, but I'm not sure why doing that in a startup script doesn't do the same thing?



Adam


Reply via email to