ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Re: IA: MySQL
Date: Sat, 4 Feb 2006 23:50:36 +0300
Message-ID: <20060204205036.GB10899@basalt.office.altlinux.org> (raw)
In-Reply-To: <200602041339.48638.iadzhubey@rics.bwh.harvard.edu>

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

On Sat, Feb 04, 2006 at 01:39:48PM -0500, Ivan Adzhubey wrote:
> On Saturday 04 February 2006 04:18, Konstantin A. Lepikhov wrote:
> > не верю. Посмотрите на etc/init.d/mysqld повнимательнее, может быть рядом
> > лежит .rpmnew именно с _новым_  скриптом? Либо у вас не остановился старый
> > сервер, и в памяти висят ошметки от него.
> 
> Повторяю еще раз, для тех кто в бронетранспортере:
> 
> Перезагрузил систему с выключением питания компьютера, сильно сомневаюсь чтобы 
> у него в памяти после этого оставались ошметки чего-либо.
> 
> # chkconfig --list mysqld
> mysqld          0:off   1:off   2:off   3:off   4:off   5:off   6:off
> 
> # service mysqld status
> mysqld is stopped
> 
> # service mysqld start
> Adjusting environment for mysqld:     [ DONE ]
> Starting mysqld service:                    [ DONE ]
> 
> # service mysqld status
> mysqld is dead, but stale PID file exists
> 
> # service mysqld stop
> Service mysqld is not running.           [PASSED]

Это вследствие ошибочного изменения в /etc/init.d/mysqld:
@@ -62,7 +65,7 @@ start()
 
 stop()
 {
-	stop_daemon --lockfile "$LOCKFILE" --pidfile "$PIDFILE" --expect-user mysql mysqld
+	stop_daemon --lockfile "$LOCKFILE" --pidfile "$PIDFILE" --expect-user root mysqld
 	RETVAL=$?
 	return $RETVAL
 }
@@ -98,7 +101,7 @@ case "$1" in
 		fi
 		;;
 	status)
-		status --pidfile "$PIDFILE" --expect-user mysql mysqld
+		status --pidfile "$PIDFILE" --expect-user root mysqld
 		RETVAL=$?
 		;;
 	*)
--- MySQL-4.0.24-alt1.1/my.cnf	2003-06-30 16:00:28 +0000


В %post вижу ещё одно ошибочное изменение:
-if [ $1 = 1 ]; then     
-        /sbin/chkconfig --add mysqld       
-fi
+%post_service mysqld       


P.S. Пакет не ставил, только srpmcmp сделал.


-- 
ldv

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

  parent reply	other threads:[~2006-02-04 20:50 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-01 21:30 [sisyphus] " Konstantin A. Lepikhov
2006-02-04  5:49 ` Ivan Adzhubey
2006-02-04  5:57   ` Ivan Adzhubey
2006-02-04  6:03     ` Ivan Adzhubey
2006-02-04  9:18   ` [sisyphus] " Konstantin A. Lepikhov
2006-02-04 12:14     ` Dmitry V. Levin
2006-02-04 13:12       ` Konstantin A. Lepikhov
2006-02-04 14:42         ` Michael Shigorin
2006-02-06 14:33           ` Sergey V Turchin
2006-02-04 18:41         ` Ivan Adzhubey
2006-02-04 20:05           ` Michael Shigorin
2006-02-04 20:12             ` Konstantin A. Lepikhov
2006-02-04 20:37             ` Ivan Adzhubey
2006-02-04 18:39     ` Ivan Adzhubey
2006-02-04 18:50       ` Konstantin A. Lepikhov
2006-02-04 19:03         ` Ivan Adzhubey
2006-02-04 20:14           ` Konstantin A. Lepikhov
2006-02-04 20:39             ` Ivan Adzhubey
2006-02-04 21:10               ` Konstantin A. Lepikhov
2006-02-04 23:19                 ` Ivan Adzhubey
2006-02-04 20:50       ` Dmitry V. Levin [this message]
2006-02-04 21:09         ` Konstantin A. Lepikhov
2006-02-04 21:12           ` Dmitry V. Levin
2006-02-04 21:20             ` Konstantin A. Lepikhov
2006-02-04 23:20               ` Ivan Adzhubey
2006-02-05 17:36                 ` Konstantin A. Lepikhov
2006-02-05 18:07                   ` Dmitry V. Levin
2006-02-05 18:20                     ` Konstantin A. Lepikhov
2006-02-05 18:28                       ` Dmitry V. Levin
2006-02-05 18:38                         ` Konstantin A. Lepikhov
2006-02-04 21:22             ` Konstantin A. Lepikhov

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=20060204205036.GB10899@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@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 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