mirror of
https://github.com/ceph/ceph
synced 2024-12-22 19:34:30 +00:00
bed1a5cc05
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>
9 lines
217 B
Desktop File
9 lines
217 B
Desktop File
[Unit]
|
|
Description=Ceph disk activation: %f
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
KillMode=none
|
|
ExecStart=/bin/sh -c 'timeout 120 flock /var/lock/ceph-disk /usr/sbin/ceph-disk --verbose --log-stdout trigger --sync %f'
|
|
TimeoutSec=0
|