]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
systemd: create a service file for ceph-volume
authorAlfredo Deza <adeza@redhat.com>
Thu, 20 Jul 2017 15:26:27 +0000 (11:26 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 4 Aug 2017 14:25:57 +0000 (10:25 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
systemd/ceph-volume@.service [new file with mode: 0644]

diff --git a/systemd/ceph-volume@.service b/systemd/ceph-volume@.service
new file mode 100644 (file)
index 0000000..c21002c
--- /dev/null
@@ -0,0 +1,14 @@
+[Unit]
+Description=Ceph Volume activation: %i
+After=local-fs.target
+Wants=local-fs.target
+
+[Service]
+Type=oneshot
+KillMode=none
+Environment=CEPH_VOLUME_TIMEOUT=10000
+ExecStart=/bin/sh -c 'timeout $CEPH_VOLUME_TIMEOUT /usr/sbin/ceph-volume-systemd %i'
+TimeoutSec=0
+
+[Install]
+WantedBy=multi-user.target