File 0034-systemd-reinstate-missing-Environme.patch of Package ceph.627

From: Tim Serong <tserong@suse.com>
Date: Thu, 7 May 2015 10:05:52 +1000
Subject: [PATCH] systemd: reinstate missing Environment=CLUSTER=ceph

Commit b6eaf97 removed the Environment=CLUSTER=ceph lines from the
systemd service files.  This has the unfortunate side effect of causing
the daemons to not start at all unless /etc/sysconfig/ceph exists and
sets the CLUSTER variable.

Signed-off-by: Tim Serong <tserong@suse.com>
---
 systemd/ceph-mds@.service | 1 +
 systemd/ceph-mon@.service | 1 +
 systemd/ceph-osd@.service | 1 +
 3 files changed, 3 insertions(+)

diff --git a/systemd/ceph-mds@.service b/systemd/ceph-mds@.service
index 536d14b..22a787d 100644
--- a/systemd/ceph-mds@.service
+++ b/systemd/ceph-mds@.service
@@ -6,6 +6,7 @@ PartOf=ceph.target
 
 [Service]
 EnvironmentFile=-/etc/sysconfig/ceph
+Environment=CLUSTER=ceph
 ExecStart=/usr/bin/ceph-mds -f --cluster ${CLUSTER} --id %i
 
 [Install]
diff --git a/systemd/ceph-mon@.service b/systemd/ceph-mon@.service
index 19436c2..437ef4d 100644
--- a/systemd/ceph-mon@.service
+++ b/systemd/ceph-mon@.service
@@ -11,6 +11,7 @@ PartOf=ceph.target
 
 [Service]
 EnvironmentFile=-/etc/sysconfig/ceph
+Environment=CLUSTER=ceph
 ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i
 
 [Install]
diff --git a/systemd/ceph-osd@.service b/systemd/ceph-osd@.service
index 9aa5b38..09f51c5 100644
--- a/systemd/ceph-osd@.service
+++ b/systemd/ceph-osd@.service
@@ -6,6 +6,7 @@ PartOf=ceph.target
 
 [Service]
 EnvironmentFile=-/etc/sysconfig/ceph
+Environment=CLUSTER=ceph
 ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i
 ExecStartPre=/usr/lib/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i
 LimitNOFILE=131072
openSUSE Build Service is sponsored by