summaryrefslogtreecommitdiffstats
path: root/src/ceph/systemd/ceph-disk@.service
diff options
context:
space:
mode:
Diffstat (limited to 'src/ceph/systemd/ceph-disk@.service')
-rw-r--r--src/ceph/systemd/ceph-disk@.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ceph/systemd/ceph-disk@.service b/src/ceph/systemd/ceph-disk@.service
new file mode 100644
index 0000000..1fdf2af
--- /dev/null
+++ b/src/ceph/systemd/ceph-disk@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Ceph disk activation: %f
+After=local-fs.target
+Wants=local-fs.target
+
+[Service]
+Type=oneshot
+KillMode=none
+Environment=CEPH_DISK_TIMEOUT=10000
+ExecStart=/bin/sh -c 'timeout $CEPH_DISK_TIMEOUT flock /var/lock/ceph-disk-$(basename %f) /usr/sbin/ceph-disk --verbose --log-stdout trigger --sync %f'
+TimeoutSec=0