Subject: pkg/31573: databases/mysql4-server rc.d "stop" sometimes doesn't
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 10/13/2005 06:26:00
>Number:         31573
>Category:       pkg
>Synopsis:       databases/mysql4-server rc.d "stop" sometimes doesn't
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 13 06:26:00 +0000 2005
>Originator:     Amitai Schlair
>Release:        NetBSD 2.0.2_STABLE
Schmonz Enterprises
System: NetBSD 2.0.2_STABLE NetBSD 2.0.2_STABLE (GENERIC) #1: Tue Apr 26 03:33:47 EDT 2005 i386
Architecture: i386
Machine: i386
Sometimes "/etc/rc.d/mysqld stop" doesn't fully stop mysqld. When
this happens, it detects a PID, kills it, and claims to have stopped
the daemon, but running "/etc/rc.d/mysqld status" shows it running
under a different PID, and running "/etc/rc.d/mysqld stop" again
kills that PID (and really stops mysqld).
Not sure. In my usage, the above seems to happen most of the time
I want to restart mysql, but I can't make it happen a second time:
after the above occurs, "/etc/rc.d/mysqld start" followed by
"/etc/rc.d/mysqld stop" stops it on the first try.
Unknown, sorry. Workaround: loop on "/etc/rc.d/mysqld stop" until
it's really not running.

This probably affects the other MySQL server packages, too.