Subject: pkg/35887: rc.d/mysqld does not set pid file correctly
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <ef@math.uni-bonn.de>
List: pkgsrc-bugs
Date: 03/01/2007 16:45:01
>Number: 35887
>Category: pkg
>Synopsis: rc.d/mysqld does not set pid file correctly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 01 16:45:00 +0000 2007
>Originator: Edgar Fuß
>Release: 2006Q4
>Organization:
Mathematisches Institut der Universität Bonn, Computerabteilung
>Description:
In rc.d/mysqld, pidfile is set before load_rc_config is called.
If mysqld_datadir is set, this leads to an inconsistent setting
of pidfile and so mysqld fails.
I must admit I don't understand the whole else block at the end
and why load_rc_config is not called at the beginning of the script.
>How-To-Repeat:
install databases/mysql5-server, set mysql_datadir in rc.conf
>Fix:
Move up load_rc_config to beginning of script?
move assignement to pidfile down after load_rc_config call?