summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2015-11-18 12:24:07 +0100
committerAtin Mukherjee <amukherj@redhat.com>2015-11-19 20:20:24 -0800
commit4a7d83d53a5698839d605ac4b3d4a9468ca64dd4 (patch)
treece591af871efb6de2babe18c4cd6347cfab61c51 /extras
parent79103a0f9eea2af4c68710e602f78963471ecec7 (diff)
glusterd.service: Ensure rpcbind is started before glusterd
Having the rpcbind.service under the `After` option only ensures that glusterd.service is started after rpcbind.service if both are enabled/started at the same time. It doesn't ensure that starting glusterd.service will start rpcbind.service. The systemd.unit(5) man page suggests to use both the `Requires` and `After` options to ensure that rpcbind is started before glusterd, whenever glusterd is started. Cherry picked from commit 23440a73bc348bbc3bb43ec397f0639ee45865fc: > BUG: 1282915 > Change-Id: Iee69965486be08711299aba235f7b00c3e2fe7e9 > Signed-off-by: Kaushal M <kaushal@redhat.com> > Reviewed-on: http://review.gluster.org/12605 > Reviewed-by: Atin Mukherjee <amukherj@redhat.com> > Reviewed-by: Anand Nekkunti <anekkunt@redhat.com> > Tested-by: Gluster Build System <jenkins@build.gluster.com> > Tested-by: NetBSD Build System <jenkins@build.gluster.org> Change-Id: Iee69965486be08711299aba235f7b00c3e2fe7e9 BUG: 1283142 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/12640 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'extras')
-rw-r--r--extras/systemd/glusterd.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/systemd/glusterd.service.in b/extras/systemd/glusterd.service.in
index 5f962a6..26694cf 100644
--- a/extras/systemd/glusterd.service.in
+++ b/extras/systemd/glusterd.service.in
@@ -1,5 +1,6 @@
[Unit]
Description=GlusterFS, a clustered file-system server
+Requires=rpcbind.service
After=network.target rpcbind.service
Before=network-online.target