alfred: workaround race condition when batmanif is not ready at boot time
authorGui Iribarren <gui@altermundi.net>
Fri, 13 Dec 2013 19:05:26 +0000 (16:05 -0300)
committerSimon Wunderlich <sw@simonwunderlich.de>
Mon, 16 Dec 2013 15:03:44 +0000 (16:03 +0100)
commite2cfab7f287673b1d6854c59db6e710668d145f3
tree54be567a4626d396e77b6c66eb5c362aeb200040
parent47a466ede6ad5a729b9be336cd28160a388fdcb7
alfred: workaround race condition when batmanif is not ready at boot time

Wait up to 30 seconds during init.d script on boot, so that batmanif can
come up. If the timeout is reached, the init.d script refuses to start
alfred and related daemons.

This prevents an alfred crash when it would start during early boot, before
batmanif is available. Instead, alfred is started as soon as batmanif appears,
if that happens during the 30-second window.

Signed-off-by: Gui Iribarren <gui@altermundi.net>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
alfred/Makefile
alfred/files/alfred.init