summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorMilind Changire <mchangir@redhat.com>2016-09-13 14:21:29 +0530
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-09-14 20:04:51 -0700
commit73c6c2c307c8bcaac51aa94b1af518955f35d1b8 (patch)
tree95f9eaec08061ba97535438dbff0453c0a72ab48 /glusterfs.spec.in
parent656873c4c8f5f3b05823c51f20c2a44106662550 (diff)
build: add systemd dependency
Installs break with glusterfs getting installed before systemd installation. This patch adds a dependency for systemd appropriately for Fedora and RHEL platforms for glusterfs-server and glusterfs-events packages. Change-Id: Ica18f82a5e37c7755f0d386ce2ac6c70e8082815 BUG: 1375181 Signed-off-by: Milind Changire <mchangir@redhat.com> Reviewed-on: http://review.gluster.org/15469 Reviewed-by: Niels de Vos <ndevos@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 19988db0910..10dd67eabd7 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -530,7 +530,7 @@ Requires: psmisc
Requires: lvm2
Requires: nfs-utils
%if ( 0%{?_with_systemd:1} )
-Requires(post): systemd-units
+Requires(post): systemd-units, systemd
Requires(preun): systemd-units
Requires(postun): systemd-units
%else
@@ -588,6 +588,9 @@ Requires: python-gluster = %{version}-%{release}
%if ( 0%{?rhel} && 0%{?rhel} <= 6 )
Requires: python-argparse
%endif
+%if ( 0%{?_with_systemd:1} )
+Requires(post): systemd
+%endif
%description events
GlusterFS Events