From: Sergey <a_s_y@sama.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] включить coredump для httpd2
Date: Wed, 18 Jun 2014 10:52:09 +0400
Message-ID: <201406181052.09268.a_s_y@sama.ru> (raw)
In-Reply-To: <201406161013.40785.a_s_y@sama.ru>
On Monday 16 June 2014, Sergey wrote:
> coredump надо получить от httpd2. В каком месте и что
> применяется при запуске процессов самого Апаче ?
Качественно закопано... В apachectl2 есть такой код:
start()
{
initlog $INITLOG_ARGS -n "$BASENAME" -c "limited -n $BASENAME -- $BINARY -k start $OPTIONS $DEFINE" || :
poststart
RETVAL=$?
return $RETVAL
}
man limited как бы есть, есть пример в виде /etc/sysconfig/limits,
и он же уже рабочий конфиг, а там - RLIMIT_SOFT_CORE=0.
Создаём /etc/sysconfig/limits.d/httpd2:
RLIMIT_SOFT_CORE=10000000
RLIMIT_HARD_CORE=10000000
Только это ещё не всё. limited выбирает файл в limits.d в соответствии
с -n $BASENAME, а оно определяется в apachectl2 посредством
name=`echo $HTTPD | sed -r '\@^.*/[^/[:space:]]+[[:space:]]*$@s@^.*/([^/[:space:]]+)[[:space:]]*$@\1@'`
BINARY=/usr/sbin/$name
BASENAME="$(basename "$BINARY")"
В общем, в limits.d надо симлинков насоздавать на httpd2, в зависимости
от того, какие apache2-httpd-* установлены:
httpd2
httpd2.prefork
httpd2.worker
--
С уважением, Сергей
a_s_y@sama.ru
prev parent reply other threads:[~2014-06-18 6:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-16 6:13 [Sysadmins] включить coredump для демона Sergey
2014-06-16 6:37 ` Sergey
2014-06-18 6:52 ` Sergey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201406181052.09268.a_s_y@sama.ru \
--to=a_s_y@sama.ru \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git