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.
Anyway, now fixed and MFC'ed to 2-STABLE and 2-STABLE-20060622:
http://cvs.openpkg.org/chngview?cn=29534
http://cvs.openpkg.org/chngview?cn=29535
Thanks for the hint, Bill.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [email protected]