summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmipathi <lakshmipathi@gluster.com>2011-06-06 04:11:19 +0000
committerAnand Avati <avati@gluster.com>2011-06-08 09:57:45 -0700
commitddb2505383441b0bf41e31c13f90420f5d14d1dc (patch)
treede8564410d130ab39a21d715fac09ebf12f81037
parentd11c17b8dae415f0f5c9af2cd4ec3423419ff996 (diff)
rpmbuild : restart glusterd after installing geo-replication rpm
Signed-off-by: Lakshmipathi.G <lakshmipathi@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2901 (Cannot start geo-replication) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2901
-rw-r--r--glusterfs.spec.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index efed334a234..d01e87e34c7 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -237,6 +237,10 @@ fi
%{_libdir}/glusterfs/%{version}/rpc-transport/rdma*
%endif
+%post geo-replication
+#restart glusterd.
+/etc/init.d/glusterd restart &> /dev/null
+
%if 0%{!?_without_geo-replication:1}
%files geo-replication
%defattr(-,root,root)