From cc45a6c5a0f6d68529b790b1a03daf4d84af6cd9 Mon Sep 17 00:00:00 2001
From: Soumya Koduri <skoduri@redhat.com>
Date: Wed, 2 Sep 2015 14:17:55 +0530
Subject: [PATCH 321/330] CommonHA: Fix the path of 'systemctl' cmd
'systemctl' command path should be '/usr/bin/sytemctl'.
Fixed the typo in the HA-script.
This is backport of the below fix -
http://review.gluster.org/12089
BUG: 1259221
Change-Id: Id40852191255d5107ddd17f5ec9f97073a2bc32c
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Reviewed-on: http://review.gluster.org/12089
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/57119
Tested-by: Niels de Vos <ndevos@redhat.com>
---
extras/ganesha/scripts/ganesha-ha.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh
index 01bd651..4bd3354 100644
--- a/extras/ganesha/scripts/ganesha-ha.sh
+++ b/extras/ganesha/scripts/ganesha-ha.sh
@@ -97,7 +97,7 @@ manage_service ()
{
local action=${1}
local new_node=${2}
- if [ "$SERVICE_MAN" == "/usr/sbin/systemctl" ]
+ if [ "$SERVICE_MAN" == "/usr/bin/systemctl" ]
then
ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no -i \
${SECRET_PEM} root@${new_node} "$SERVICE_MAN ${action} nfs-ganesha"
--
1.7.1