2011-10-23 13:07:36 |
Frederic Descamps |
bug |
|
|
added bug |
2011-10-23 13:08:10 |
Frederic Descamps |
attachment added |
|
pt-stalk.patch https://bugs.launchpad.net/percona-toolkit/+bug/880341/+attachment/2568042/+files/pt-stalk.patch |
|
2011-10-23 13:08:46 |
Frederic Descamps |
description |
In the documentation it's mention that if the file pt-stalk.conf exists in the current working directory, then “ENVIRONMENT” variables are imported from it. But in fact if pt-stalk is in the path, it won't use the config file in the current working dir but in the directory from the command.
This is a patch:
--- pt-stalk.old 2011-10-23 10:01:24.633878128 +0200
+++ pt-stalk 2011-10-23 10:02:54.877878121 +0200
@@ -7,8 +7,8 @@
# ########################################################################
# Check for the existence of a config file and source it if it exists
# ########################################################################
-if [ -f "${0}.conf" ]; then
- . "${0}.conf"
+if [ -f "$(basename ${0}).conf" ]; then
+ . "$(basename {0}).conf"
fi
# ####################################################################### |
In the documentation it's mention that if the file pt-stalk.conf exists in the current working directory, then “ENVIRONMENT” variables are imported from it. But in fact if pt-stalk is in the path, it won't use the config file in the current working dir but in the directory where the command is. |
|
2011-11-01 16:19:58 |
Daniel Nichter |
summary |
pt-stalk If the file pt-stalk.conf does not use ptstalk.conf in the current working directory |
pt-stalk may not read .conf file in the current working directory |
|
2011-11-01 16:20:01 |
Daniel Nichter |
percona-toolkit: importance |
Undecided |
Medium |
|
2011-11-01 16:20:05 |
Daniel Nichter |
percona-toolkit: milestone |
|
2.0-beta2 |
|
2011-11-01 16:20:26 |
Daniel Nichter |
tags |
|
conf pt-stalk |
|
2011-11-01 16:56:34 |
Baron Schwartz |
summary |
pt-stalk may not read .conf file in the current working directory |
pt-stalk documentation for .conf file is wrong |
|
2011-12-16 15:34:53 |
Daniel Nichter |
nominated for series |
|
percona-toolkit/1.0 |
|
2011-12-16 15:34:53 |
Daniel Nichter |
bug task added |
|
percona-toolkit/1.0 |
|
2011-12-16 15:35:20 |
Daniel Nichter |
percona-toolkit: milestone |
2.0-beta2 |
|
|
2011-12-16 15:35:37 |
Daniel Nichter |
nominated for series |
|
percona-toolkit/2.0 |
|
2011-12-16 15:35:37 |
Daniel Nichter |
bug task added |
|
percona-toolkit/2.0 |
|
2011-12-16 15:36:14 |
Daniel Nichter |
percona-toolkit/2.0: importance |
Medium |
Undecided |
|
2011-12-16 15:36:14 |
Daniel Nichter |
percona-toolkit/2.0: status |
New |
Invalid |
|
2011-12-16 15:36:33 |
Daniel Nichter |
percona-toolkit/1.0: importance |
Undecided |
High |
|
2011-12-16 15:36:33 |
Daniel Nichter |
percona-toolkit/1.0: status |
New |
Confirmed |
|
2011-12-16 15:36:51 |
Daniel Nichter |
percona-toolkit/1.0: importance |
High |
Medium |
|
2011-12-16 15:37:38 |
Daniel Nichter |
tags |
conf pt-stalk |
docs pt-stalk |
|
2012-11-10 14:30:12 |
Brian Fraser |
percona-toolkit/1.0: status |
Confirmed |
Won't Fix |
|