diff options
author | Christopher Odenbach <odenbach@uni-paderborn.de> | 2019-04-03 08:54:06 +0200 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2021-12-03 15:34:08 +1100 |
commit | 658a1e1fed81504c027f1d0d81abad5b9bb6c0d4 (patch) | |
tree | 5767b8dd8c85f6678506b30426efe34778294c1b | |
parent | 1b0fb2faa9019ce35b9aea56eaafa82a5b3d4c5b (diff) | |
download | mariadb-git-658a1e1fed81504c027f1d0d81abad5b9bb6c0d4.tar.gz |
Use mysqladmin ping instead of pid files
How 'bout know?
-rw-r--r-- | debian/mariadb-server-10.4.mysql-server.logrotate | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/mariadb-server-10.4.mysql-server.logrotate b/debian/mariadb-server-10.4.mysql-server.logrotate index 34ef6385e8e..11e4480c427 100644 --- a/debian/mariadb-server-10.4.mysql-server.logrotate +++ b/debian/mariadb-server-10.4.mysql-server.logrotate @@ -11,8 +11,8 @@ sharedscripts postrotate test -x /usr/bin/mysqladmin || exit 0 - if [ -f `my_print_defaults --mysqld | grep -m 1 -oP "pid-file=\K.+$"` ]; then - # If this fails, check debian.conf! + # check if server is running + if mysqladmin ping > /dev/null 2>&1; then mysqladmin --defaults-file=/etc/mysql/debian.cnf --local flush-error-log \ flush-engine-log flush-general-log flush-slow-log fi |