[Pkg-uml-pkgs] Bug#849672: Bug#849672: uml-utilities: boot up delay
Mattia Dongili
malattia at linux.it
Mon Jan 23 14:44:11 UTC 2017
On Thu, Dec 29, 2016 at 10:57:42PM +0530, Ritesh Raj Sarraf wrote:
...
> 3.289s uml-utilities.service
...
> The following code snippet has an explicit sleep, which has to retry for
> a max of 5 secs.
>
> WAIT=5
> while ! test -e $UML_SWITCH_CTL; do
> sleep 1
> WAIT=$(($WAIT - 1))
> if [ $WAIT -le 0 ]; then
> log_warning_msg "$DAEMON never created control socket $UML_SWITCH_CTL"
> log_end_msg 1
> exit 1
> fi
> done
>
> There must be some reasoning as to why this was done. Perhaps Mattia can
> shed some light here.
That code pre-dates me.
I don't think there was any specific reason other than giving the time
to the daemon do to whatever it needs to do before calling it a success.
--
mattia
:wq!
More information about the Pkg-uml-pkgs
mailing list