|
|
256ebe |
From 850d5418fb48417d94ab17e565b2184ba951ccbe Mon Sep 17 00:00:00 2001
|
|
|
256ebe |
From: Mohit Agrawal <moagrawa@redhat.com>
|
|
|
256ebe |
Date: Wed, 17 Apr 2019 18:04:44 +0530
|
|
|
256ebe |
Subject: [PATCH 113/124] spec: Glusterd did not start by default after node
|
|
|
256ebe |
reboot
|
|
|
256ebe |
|
|
|
256ebe |
Problem: After install gluster rpms glusterd service is not enabled
|
|
|
256ebe |
so systemctl status is showing "disabled"
|
|
|
256ebe |
|
|
|
256ebe |
Solution: Update glusterfs.spec.in to enable glusterd after install
|
|
|
256ebe |
gluster rpms
|
|
|
256ebe |
|
|
|
256ebe |
label: DOWNSTREAM ONLY
|
|
|
256ebe |
BUG: 1699835
|
|
|
256ebe |
|
|
|
256ebe |
Change-Id: Ied9be5dfb1bf3bda24868722b1fbd77cb1c1d18c
|
|
|
256ebe |
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
|
|
|
256ebe |
Reviewed-on: https://code.engineering.redhat.com/gerrit/168168
|
|
|
256ebe |
Reviewed-by: Kaleb Keithley <kkeithle@redhat.com>
|
|
|
256ebe |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
256ebe |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
256ebe |
---
|
|
|
256ebe |
glusterfs.spec.in | 10 ++++++----
|
|
|
256ebe |
1 file changed, 6 insertions(+), 4 deletions(-)
|
|
|
256ebe |
|
|
|
256ebe |
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
|
|
|
256ebe |
index cb17eaa..ba095b7 100644
|
|
|
256ebe |
--- a/glusterfs.spec.in
|
|
|
256ebe |
+++ b/glusterfs.spec.in
|
|
|
256ebe |
@@ -168,6 +168,8 @@
|
|
|
256ebe |
%endif
|
|
|
256ebe |
|
|
|
256ebe |
%if ( 0%{?_with_systemd:1} )
|
|
|
256ebe |
+%global service_enable() /bin/systemctl --quiet enable %1.service || : \
|
|
|
256ebe |
+%{nil}
|
|
|
256ebe |
%global service_start() /bin/systemctl --quiet start %1.service || : \
|
|
|
256ebe |
%{nil}
|
|
|
256ebe |
%global service_stop() /bin/systemctl --quiet stop %1.service || :\
|
|
|
256ebe |
@@ -181,7 +183,7 @@
|
|
|
256ebe |
%global glustereventsd_svcfile %{_unitdir}/glustereventsd.service
|
|
|
256ebe |
%global glusterfssharedstorage_svcfile %{_unitdir}/glusterfssharedstorage.service
|
|
|
256ebe |
%else
|
|
|
256ebe |
-%global systemd_post() /sbin/chkconfig --add %1 >/dev/null 2>&1 || : \
|
|
|
256ebe |
+%global service_enable() /sbin/chkconfig --add %1 >/dev/null 2>&1 || : \
|
|
|
256ebe |
%{nil}
|
|
|
256ebe |
%global systemd_preun() /sbin/chkconfig --del %1 >/dev/null 2>&1 || : \
|
|
|
256ebe |
%{nil}
|
|
|
256ebe |
@@ -926,7 +928,7 @@ exit 0
|
|
|
256ebe |
|
|
|
256ebe |
%if ( 0%{!?_without_events:1} )
|
|
|
256ebe |
%post events
|
|
|
256ebe |
-%systemd_post glustereventsd
|
|
|
256ebe |
+%service_enable glustereventsd
|
|
|
256ebe |
%endif
|
|
|
256ebe |
|
|
|
256ebe |
%if ( 0%{!?_without_server:1} )
|
|
|
256ebe |
@@ -951,9 +953,9 @@ exit 0
|
|
|
256ebe |
%if ( 0%{!?_without_server:1} )
|
|
|
256ebe |
%post server
|
|
|
256ebe |
# Legacy server
|
|
|
256ebe |
-%systemd_post glusterd
|
|
|
256ebe |
+%service_enable glusterd
|
|
|
256ebe |
%if ( 0%{_for_fedora_koji_builds} )
|
|
|
256ebe |
-%systemd_post glusterfsd
|
|
|
256ebe |
+%service_enable glusterfsd
|
|
|
256ebe |
%endif
|
|
|
256ebe |
# ".cmd_log_history" is renamed to "cmd_history.log" in GlusterFS-3.7 .
|
|
|
256ebe |
# While upgrading glusterfs-server package form GlusterFS version <= 3.6 to
|
|
|
256ebe |
--
|
|
|
256ebe |
1.8.3.1
|
|
|
256ebe |
|