From d6954111dcadd66d31f659a934ba2d3d74e61eed Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 20 Jul 2017 11:26:27 -0400 Subject: [PATCH] systemd: create a service file for ceph-volume Signed-off-by: Alfredo Deza --- systemd/ceph-volume@.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 systemd/ceph-volume@.service diff --git a/systemd/ceph-volume@.service b/systemd/ceph-volume@.service new file mode 100644 index 00000000000..c21002cecb9 --- /dev/null +++ b/systemd/ceph-volume@.service @@ -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