Skip to content

Commit

Permalink
Merge pull request #10262 from dachary/wip-16580-ceph-disk-timeout
Browse files Browse the repository at this point in the history
ceph-disk: timeout ceph-disk to avoid blocking forever

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Ken Dreyer (Red Hat) <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.cz>
  • Loading branch information
yuriw committed Aug 5, 2016
2 parents bb7424e + bed1a5c commit 8175ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systemd/ceph-disk@.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Description=Ceph disk activation: %f
[Service]
Type=oneshot
KillMode=none
ExecStart=/bin/sh -c 'flock /var/lock/ceph-disk /usr/sbin/ceph-disk --verbose --log-stdout trigger --sync %f'
ExecStart=/bin/sh -c 'timeout 120 flock /var/lock/ceph-disk /usr/sbin/ceph-disk --verbose --log-stdout trigger --sync %f'
TimeoutSec=0

0 comments on commit 8175ce0

Please sign in to comment.