Subject: pkg/31573: databases/mysql4-server rc.d "stop" sometimes doesn't
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <schmonz-lists-netbsd-public-bugs-sendpr@schmonz.com>
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
>Organization:
Schmonz Enterprises
>Environment:
System: NetBSD ays2105-mood-tooth.apt.columbia.edu 2.0.2_STABLE NetBSD 2.0.2_STABLE (GENERIC) #1: Tue Apr 26 03:33:47 EDT 2005 schmonz@mood-tooth.scl.cwru.edu:/home/schmonz/builds/2-0-i386/obj/home/schmonz/netbsd/src-2-0/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
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).
>How-To-Repeat:
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.
>Fix:
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.