git.samba.org
/
obnox
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27aab87
)
eventscripts: counters default to $script_name if $service_name not set
author
Martin Schwenke
<martin@meltin.net>
Tue, 30 Apr 2013 05:31:27 +0000
(15:31 +1000)
committer
Amitay Isaacs
<amitay@gmail.com>
Mon, 6 May 2013 05:45:10 +0000
(15:45 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
config/functions
patch
|
blob
|
history
diff --git
a/config/functions
b/config/functions
index edc7653cbdf350bbe77ab034a71926f50d0717ab..6181f0defc9446baa7ad4d4b0798f2d52cb38b6b 100755
(executable)
--- a/
config/functions
+++ b/
config/functions
@@
-954,7
+954,7
@@
drop_all_public_ips ()
# ctdb_check_counter_limit fails when count >= <limit>
########################################################
_ctdb_counter_common () {
- _service_name="${1:-${service_name}}"
+ _service_name="${1:-${service_name
:-${script_name}
}}"
_counter_file="$ctdb_fail_dir/$_service_name"
mkdir -p "${_counter_file%/*}" # dirname
}