1
30_scripts__mysqld_safe.sh__signals.patch by <ch@debian.org>
3
Executes /etc/init.d/mysql on signals
4
Reported as http://bugs.mysql.com/bug.php?id=31361
6
--- a/scripts/mysqld_safe.sh
7
+++ b/scripts/mysqld_safe.sh
9
syslog_tag_mysqld=mysqld
10
syslog_tag_mysqld_safe=mysqld_safe
12
-trap '' 1 2 3 15 # we shouldn't let anyone kill us
21
+# From now on, we catch signals to do a proper shutdown of mysqld
22
+# when signalled to do so.
24
+trap '@bindir@/mysqladmin --defaults-extra-file=/etc/mysql/debian.cnf refresh' 1 # HUP
25
+trap '@bindir@/mysqladmin --defaults-extra-file=/etc/mysql/debian.cnf shutdown' 2 3 15 # INT QUIT and TERM
28
# Uncomment the following lines if you want all tables to be automatically
29
# checked and repaired during startup. You should add sensible key_buffer