VirtualBox

Changeset 57721 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Sep 11, 2015 3:51:18 PM (9 years ago)
Author:
vboxsync
Message:

Additions/VBoxService: instead of relying on 'pidof', explicitly ask the VBoxService process to create the PID file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd-service.sh

    r56860 r57721  
    9494if [ "$system" = "debian" ]; then
    9595    daemon() {
    96         start-stop-daemon --start --exec $1 -- $2
     96        start-stop-daemon --start --exec $1 -- $2 $3
    9797    }
    9898
     
    121121    fi
    122122    daemon() {
    123         start-stop-daemon --start --exec $1 -- $2
     123        start-stop-daemon --start --exec $1 -- $2 $3
    124124    }
    125125
     
    147147if [ "$system" = "slackware" -o "$system" = "other" ]; then
    148148    daemon() {
    149         $1 $2
     149        $1 $2 $3
    150150    }
    151151
     
    172172    . /etc/rc.d/init.d/functions
    173173    daemon() {
    174         loadproc $1 $2
     174        loadproc $1 $2 $3
    175175    }
    176176
     
    213213        }
    214214        testbinary
    215         daemon $binary > /dev/null
     215        daemon $binary --pidfile $PIDFILE > /dev/null
    216216        RETVAL=$?
    217         test $RETVAL -eq 0 && echo `pidof VBoxService` > $PIDFILE
    218217        succ_msg
    219218    fi
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