ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey I. Froloff" <raorn@immo.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Cc: community@altlinux.ru
Subject: Re: [devel] Fw: [Comm] service mysqld start problem
Date: Thu, 27 Nov 2003 14:09:35 +0300
Message-ID: <20031127110935.GO6596@inferno.immo> (raw)
In-Reply-To: <20031127140258.55920eb3.vyt@vzljot.ru>

[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]

* Vitaly Ostanin <vyt@vzljot.ru> [031127 14:03]:
> у меня мускл странно себя ведет. Установил я его из
> рпма, изменений  никаких не вносил. Когда пытаюсь
> запустить его из стандартных скриптов получаю:

> # service mysqld start
> Adjusting environment for mysqld:                     
>   [  OK  ]
> Starting mysqld:                                      
>   [  OK  ]

> # service mysqld status
> mysqld dead but subsys locked

Это не всегда воспроизводимый баг, заключается он в следующем:

/usr/sbin/mysqld_wrapper:
...
echo "`LC_TIME=C date '+%Y-%b-%d %T'` :: startup"

pidlist=`pidof -o $$ -o $PPID -o %PPID $mysqld 2>/dev/null`
if [ -n "$pidlist" ]; then
        echo "$mysqld already running: $pidlist"
        exit 1
fi
...

По всей видимости в pidlist попадает /etc/rc.d/init.d/mysqld и
враппер думает, что mysqld уже стартовал. Мне помогло вставить
"sleep 1" непосредственно перед pidlist=. Это hackaround, как по
человечески исправить - я не знаю.

-- 
Regards, Sir Raorn.
-------------------
Пора мне синхронизировать Сизиф.
		-- ivv in devel@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

           reply	other threads:[~2003-11-27 11:09 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20031127140258.55920eb3.vyt@vzljot.ru>]

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=20031127110935.GO6596@inferno.immo \
    --to=raorn@immo.ru \
    --cc=community@altlinux.ru \
    --cc=devel@altlinux.ru \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git