ALT Linux Community general discussions
 help / color / mirror / Atom feed
* Re: [devel] Fw: [Comm] service mysqld start problem
  @ 2003-11-27 11:09 ` Alexey I. Froloff
  0 siblings, 0 replies; only message in thread
From: Alexey I. Froloff @ 2003-11-27 11:09 UTC (permalink / raw)
  To: ALT Devel discussion list; +Cc: community

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-27 11:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-27 11:09 ` [devel] Fw: [Comm] service mysqld start problem Alexey I. Froloff

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