In init script there is: checkconfig() { [snip] if [[ -f "${pidfile}" ]] ; then kill -15 $(< ${pidfile}) 2>/dev/null [snip] Let's imagine situation all server crashed, pid file remains in file system. OS starts, init scripts find existing pid file and kill random process. Who knows what process has this pid now? Second situation, i've tried setup second instantion of mysql. I did mistake, init scripts used my.conf instead my-new-extra.cnf and then check)config() killed my working instance of mysql. Reproducible: Always
(In reply to comment #0) > In init script there is: > checkconfig() { > [snip] > if [[ -f "${pidfile}" ]] ; then > kill -15 $(< ${pidfile}) 2>/dev/null > [snip] > > Let's imagine situation all server crashed, pid file remains in file system. OS > starts, init scripts find existing pid file and kill random process. Who knows > what process has this pid now? maybe it should be: if [[ -f "${pidfile}" ]] && [[ "$(pgrep mysqld| grep ^$(<${pidfile})$)" != "" ]]; then and maybe it's time to make dev-db/mysql-init-scripts-2.0 stable ;-) > Second situation, i've tried setup second instantion of mysql. I did mistake, > init scripts used my.conf instead my-new-extra.cnf and then check)config() > killed my working instance of mysql. > > Reproducible: Always If I've understud this correctly this one is not a bug
Honestly i'm not sure init script should ever kill any proccess while is executing "start". (In reply to comment #1) > If I've understud this correctly this one is not a bug This situation has led me to find this problem. And as i said in first sentence, executing "start" shouldn't kill any proccess.
checkconfig is gone with mysql-init-scripts-2.0_pre1-r2 which is stabled. Also, it no longer kills running processes. We can close this bug as fixed.
Imho we should wait with closing bug til mysql-init-scripts-1.2 is in tree.
(In reply to comment #4) > Imho we should wait with closing bug til mysql-init-scripts-1.2 is in tree. If 2.0_pre1-r2 is stable on all arches, why should we "wait til 1.2 is in tree"? This should be closed as fixed.
Closing