]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: timeout ceph-disk to avoid blocking forever 10758/head
authorLoic Dachary <ldachary@redhat.com>
Tue, 12 Jul 2016 14:56:52 +0000 (16:56 +0200)
committerLoic Dachary <ldachary@redhat.com>
Wed, 17 Aug 2016 15:45:24 +0000 (17:45 +0200)
commit430ab1b83e67dfb697b034e669b06b7a600bcc6b
treea0e185048ea1b1f3413f606c78564c4872c0461a
parente6f9f287e226e44035920827be2a45753f7452d1
ceph-disk: timeout ceph-disk to avoid blocking forever

When ceph-disk runs from udev or init script, it is in the background
and should it block for any reason, it may keep a lock forever. All
calls to ceph-disk in these context are changed to timeout.

The TimeoutStartSec= and TimeoutStopSec= which are both set via
TimeoutSec= do not apply to Type=oneshot services.

https://www.freedesktop.org/software/systemd/man/systemd.service.html

Fixes: http://tracker.ceph.com/issues/16580
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit bed1a5cc05a9880b91fc9ac8d8a959efe3b3d512)
systemd/ceph-disk@.service