Summary: | dev-db/mysql-init-scripts: add features from debian-start | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Evert Meulie <evert> |
Component: | [OLD] Server | Assignee: | Gentoo Linux MySQL bugs team <mysql-bugs> |
Status: | RESOLVED NEEDINFO | ||
Severity: | enhancement | CC: | roy |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
debian-start
the include used by debian-start |
Description
Evert Meulie
2008-07-02 11:44:34 UTC
Created attachment 159307 [details]
debian-start
Created attachment 159309 [details]
the include used by debian-start
IMHO force these test on every restart is not so good as it seem. The Solution [tm] would be to add {pre,post} hooks to {start,stop} phases and maybe document some example on how to achieve automatic testing/repairing of tables, permissioons, whatever. However this should be a change in baselayout or openrc, not mysql init scripts. OpenRC already supports pre_$command where $command is start,stop, status, custom_command, etc (just idly browsing bugzilla here) 1. See the new mysql init scripts in bug 175783. 2. I don't find Roy's mentioned pre_ ability in the openrc generic codebase. It's in the net.* stuff as shell code only. This would also require that a valid root login for MySQL is somewhere in the filesystem (debian stores a copy for it's admin use). Respin against the new mysql-init-scripts-2.0_pre1 please Please reopen when you respin. |