Our practice is to search logs for "ctdbd:". We want to make sure we
find everything.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit
5940a2494e9e43a83f2bca098bd04dfc1a8f2e93)
[ -f "$CTDB_PUBLIC_ADDRESSES" ] || \
die "No public addresses file found. Can't clean up."
-drop_all_public_ips "ctdb-crash-cleanup"
+drop_all_public_ips "ctdb-crash-cleanup.sh"
if [ -n "$CTDB_NATGW_PUBLIC_IP" ] ; then
- drop_ip "$CTDB_NATGW_PUBLIC_IP" "ctdb-crash-cleanup"
+ drop_ip "$CTDB_NATGW_PUBLIC_IP" "ctdb-crash-cleanup.sh"
fi
# make sure we drop any ips that might still be held if previous
# instance of ctdb got killed with -9 or similar
- drop_all_public_ips
+ drop_all_public_ips "ctdb.init"
if select_tdb_checker ; then
check_persistent_databases || return $?
esac
if $_using_syslog ; then
- logger -t "$_tag" "$*"
+ logger -t "ctdbd" "${_tag}: $*"
else
{
if [ -n "$*" ] ; then
{
(
"$@" 2>&1 </dev/null |
- script_log "ctdbd: ${script_name}&"
+ script_log "${script_name}&"
)&
return 0