[packages/percona-toolkit] pass "empty" dsn to process .my.cnf for connect info
glen
glen at pld-linux.org
Wed Apr 30 19:07:22 CEST 2014
commit 210a69e23114c5c3a189aa1c7cf203f1e9464777
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Apr 30 20:03:36 2014 +0300
pass "empty" dsn to process .my.cnf for connect info
pt-kill.init | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/pt-kill.init b/pt-kill.init
index 234d57f..f58dbf5 100755
--- a/pt-kill.init
+++ b/pt-kill.init
@@ -27,6 +27,8 @@ config=/etc/percona-toolkit/pt-kill.conf
sentinel=/var/run/percona-toolkit/pt-kill.sentinel
pidfile=/var/run/percona-toolkit/pt-kill.pid
user=percona-toolkit
+# use "empty" DSN, so it uses my.cnf settings
+dsn=';'
# Get service config - may override defaults
[ -f /etc/sysconfig/pt-kill ] && . /etc/sysconfig/pt-kill
@@ -42,7 +44,7 @@ start() {
# FIXME: instead of removing, fix stop process
rm -f $sentinel
daemon --user $user --redirfds \
- /usr/bin/pt-kill --config $config --daemonize --pid $pidfile --sentinel $sentinel
+ /usr/bin/pt-kill --config $config --daemonize --pid $pidfile --sentinel $sentinel "$dsn"
RETVAL=$?
# workaround for lack of exit status check:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/percona-toolkit.git/commitdiff/016f37e7e614f2e9fa468adb0a562cd1ddee9300
More information about the pld-cvs-commit
mailing list