* Ugly hack to get HAL to start at boot time. Sometimes it fails

without any error message in the log (maybe ConsoleKit related?).

svn path=/nixos/trunk/; revision=17907
This commit is contained in:
Eelco Dolstra 2009-10-21 09:41:32 +00:00
parent 35abca4e7a
commit feeff52285

View File

@ -100,6 +100,11 @@ in
rm -f /var/cache/hald/fdi-cache
# For some weird reason HAL sometimes fails to start at
# boot time, which seems to be timing-dependent. As a
# temporary workaround, sleep for a while here.
sleep 2
# !!! Hack: start the daemon here to make sure it's
# running when the Upstart job reaches the "running"
# state. Should be fixable in Upstart 0.6.
@ -108,7 +113,7 @@ in
postStop =
''
pid=$(cat /var/run/hald/pid)
pid=$(cat /var/run/hald/pid || true)
test -n "$pid" && kill "$pid"
'';
};