commit: 9522d24d730c057bc41f7665af4933b5d793dfe6
Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 23 03:12:03 2015 +0000
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Wed Dec 23 03:14:49 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9522d24d
sys-cluster/ceph: restore systemd unit files for 0.94.5
Package-Manager: portage-2.2.26
sys-cluster/ceph/files/ceph-mds_at.service | 12 ++++++++++++
sys-cluster/ceph/files/ceph-mon_at.service | 19 +++++++++++++++++++
sys-cluster/ceph/files/ceph-osd_at.service | 13 +++++++++++++
3 files changed, 44 insertions(+)
diff --git a/sys-cluster/ceph/files/ceph-mds_at.service
b/sys-cluster/ceph/files/ceph-mds_at.service
new file mode 100644
index 0000000..c28604e
--- /dev/null
+++ b/sys-cluster/ceph/files/ceph-mds_at.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Ceph metadata server daemon
+After=network-online.target local-fs.target
+Wants=network-online.target local-fs.target
+PartOf=ceph.target
+
+[Service]
+Environment=CLUSTER=ceph
+ExecStart=/usr/bin/ceph-mds -f --cluster ${CLUSTER} --id %i
+
+[Install]
+WantedBy=ceph.target
diff --git a/sys-cluster/ceph/files/ceph-mon_at.service
b/sys-cluster/ceph/files/ceph-mon_at.service
new file mode 100644
index 0000000..4f54cc1
--- /dev/null
+++ b/sys-cluster/ceph/files/ceph-mon_at.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Ceph cluster monitor daemon
+After=network-online.target
+Wants=network-online.target
+
+# According to:
+# http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget
+# these can be removed once ceph-mon will dynamically change network
+# configuration.
+After=network-online.target local-fs.target
+Wants=network-online.target local-fs.target
+PartOf=ceph.target
+
+[Service]
+Environment=CLUSTER=ceph
+ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i
+
+[Install]
+WantedBy=ceph.target
diff --git a/sys-cluster/ceph/files/ceph-osd_at.service
b/sys-cluster/ceph/files/ceph-osd_at.service
new file mode 100644
index 0000000..7bf125f
--- /dev/null
+++ b/sys-cluster/ceph/files/ceph-osd_at.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Ceph object storage daemon
+After=network-online.target local-fs.target
+Wants=network-online.target local-fs.target
+PartOf=ceph.target
+
+[Service]
+Environment=CLUSTER=ceph
+ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i
+ExecStartPre=/usr/libexec/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id
%i
+
+[Install]
+WantedBy=ceph.target