On Thu, Aug 10, 2006, Ralf S. Engelschall wrote:
>On Thu, Aug 10, 2006, Bill Campbell wrote:
>
>> I just ran into a problem this morning when a customer noted that the mysql
>> common.log and update.log files were growing out of control. After doing
>> some checking, I figured out that the main problem is that the %restart
>> section of the %{l_prefix}/etc/rc.d/rc.mysql run control file needs to run
>> as root, not as the restricted user.
>>
>> Running %restart as the restricted user won't allow it to do the necessary
>> ``stop start'' as it requires root priviledges to run the %stop section.
>>
>> Unless I'm mistaken, any %restart section must run at the higher
>> priviledges of the %start and %start sections.
>
>Yes, you're right, Bill. We really need that the %restart section is run
>as the super-user because once the run-command process has downgraded
>its privileges, it cannot upggrade it again.
>
>This bug was introduced by me when I upgraded from MySQL 4 to 5. I
>cannot remember why I thought that the restricted user privileges are
>sufficient there.
Ralf:
I think it goes back farther than that. While looking at some of our older
installations that are running as far back as Release 2.0 I see the same
thing in the mysql-4.0.21-2.2.0.src.rpm package. It looks like it may have
been the MySQL 3 -> 4 where this was introduced.
In any case, thanks for fixing it.
I figure that others who may be running older versions of the OpenPKG
system may want to be aware of this, and make the appropriate changes in
their local packages.
Bill
--
INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software, LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
``I presume you all know who I am. I am humble Abraham Lincoln. I have been
solicited by many friends to become a candidate for the legistlature. My
politics are short and sweet, like the old woman's dance. I am in favor of
a national bank ... in favor of the internal improvements system, and a
high protective tariff.'' -- Abraham Lincoln, 1832
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [email protected]