[MBT] new ticket for pkg mysql "more graceful shutdown"

bugs at pld-linux.org bugs at pld-linux.org
Mon Dec 1 12:26:34 CET 2003


Date: 2003-12-01 12:26:33+01	Author:  (glen) <glen at delfi.ee> 
Title:         more graceful shutdown
Ticket ID:     #781
Ticket URL:    http://bugs.pld-linux.org/?bug=781
Package:       mysql-4.0.16-0.2
Distribution:  
Category:      improve request
Current state: opened
Text:

i suggest adding 'mysqladmin shutdown' before sending TERM signal to mysqld. because i've seen data corruption when mysqld is terminated with signal.

i've myself implemented it by changing user mysql_logrotate to mysqlctl and adding for it shutdown privilege.


        if [ -f /var/lock/subsys/$subsys ]; then
                msg_stopping MySQL
                /usr/bin/mysqladmin --defaults-file=$MYSQLD_CONFIG ${MYSQL_SOCKETFILE:+--socket=$MYSQL_SOCKETFILE} shutdown
                killproc $subsys
        sleep 1


ps: the mysql.init in cvs is idented with mixed tab/spaces at ts=8, which instead should be imho tabs and ts=4 ;)





More information about the pld-bugs mailing list