File warn-if-using-obsolete-sleha-command.patch of Package ha-cluster-bootstrap
Index: sleha-bootstrap-0.4+git.1392700725.6daed36/scripts/ha-cluster-functions
===================================================================
--- sleha-bootstrap-0.4+git.1392700725.6daed36.orig/scripts/ha-cluster-functions
+++ sleha-bootstrap-0.4+git.1392700725.6daed36/scripts/ha-cluster-functions
@@ -40,6 +40,15 @@ declare NET_IF=eth0
declare IP_ADDRESS
declare IP_NETWORK
+# Warn if using the old sleha-* command form (bnc#862798)
+if [[ "$0" =~ "sleha-" ]]; then
+ cat >&2 <<END
+NOTE: $0 is obsolete.
+Please use ${0/sleha/ha-cluster} instead.
+
+END
+fi
+
# Broken out as special case for log() failure. Ordinarily you
# should just use error() to terminate.
_die()