VirtualBox

Changeset 32555 in vbox


Ignore:
Timestamp:
Sep 16, 2010 12:29:12 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65944
Message:

Linux installer/vboxweb-service: wait a small amount of time until the final process has forked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxweb-service.sh.in

    r32538 r32555  
    299299        [ -n "$VBOXWEB_LOGFILE" ]        && PARAMS="$PARAMS -F $VBOXWEB_LOGFILE"
    300300        start_daemon $VBOXWEB_USER $binary $PARAMS > /dev/null 2>&1
     301        # ugly: wait until the final process has forked
     302        sleep .1
    301303        PID=`pidof $binary 2>/dev/null`
    302         [ -n "$PID" ] && echo "$PID" > $PIDFILE
    303         succ_msg
     304        if [ -n "$PID" ]; then
     305            echo "$PID" > $PIDFILE
     306            RETVAL=0
     307            succ_msg
     308        else
     309            RETVAL=1
     310            fail_msg
     311        fi
    304312    fi
    305313    return $RETVAL
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette