From: Vitaly Kuznetsov <vitty@altlinux.ru>
To: <sisyphus@lists.altlinux.org>
Cc: solo@altlinux.org
Subject: Re: [sisyphus] apache2: ps и killall
Date: Tue, 07 Feb 2012 20:32:43 +0400
Message-ID: <1f6a74876bdce5c1fa3fbe37d6cb0bde@hadoop.ru> (raw)
In-Reply-To: <3934971.qSmdURh9ZL@epiphanov.bkpi82.nikiet.ru>
On Mon, 16 Jan 2012 17:26:58 +0400, Sergei Epiphanov wrote:
> Вчера наткнулся на странное поведение apache2: он запускается по
> команде
> 'service httpd2 start', а вот по команде 'service httpd2 restart' не
> хочет
> останавливаться: пишет, что не работает, попытка запустить вторую
> копию,
> конечно же, облоамывается.
>
> При этом в списке ps я вижу имя процесса httpd2.worker, но команда
> 'killall
> httpd2.worker' говорит, что такого процесса нет. Это у меня проблемы
> или что-
> то более глобальное?
Это разлом новоприехавшего apache2. Выглядит разлом следующим образом:
# cat /proc/8667/stat
8667 (/usr/sbin/httpd) S 1 8667 8667 0 -1 4202816 16370 0 0 0 59 2 0 0
20 0 1 0 3679513 220827648 16277 18446744073709551615 4194304 4637660
140734156750048 140734156749336 139705053965043 0 0 4096 134235883
18446744071580342644 0 0 17 0 0 0 0 0 0
Name выставлен в несуществующий /usr/sbin/httpd. В то же время
инитскрипт рассчитывает на то, что name соответствует имени бинарника:
status --pidfile "$PIDFILE" --expect-user root --expect-user root
--name $name -- $BINARY
Короче, надо отучить новый apache2 менять name таким образом.
next prev parent reply other threads:[~2012-02-07 16:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-16 13:26 Sergei Epiphanov
2012-01-16 15:49 ` Ildar Mulyukov
2012-02-07 16:32 ` Vitaly Kuznetsov [this message]
2012-02-07 19:23 ` Aleksey Avdeev
2012-02-07 19:50 ` Vitaly Kuznetsov
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=1f6a74876bdce5c1fa3fbe37d6cb0bde@hadoop.ru \
--to=vitty@altlinux.ru \
--cc=sisyphus@lists.altlinux.org \
--cc=solo@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git