Comment 15 for bug 484209

Revision history for this message
Bruno Rocha Coutinho (bruno-r-coutinho) wrote :

I have a workstation that the fix dosn't worked too.
I'm not gettting errors on "start portmap" but on "status portmap | grep -q start/running"
because status portmap is returning "start/spawned".

Puting "sleep 1" afeter "start portmap || true" worked,
probably because it gave portmap time to start up before
"status portmap | grep -q start/running" test if portmap is runing.

Probably a real solution is to put a loop to wait portmap start up, like:

start portmap || true
while status portmap | grep -v -q start/running
do
        # if isn't running because a error ocurred, give up
        ...
        sleep 1
done
exec sm-notify