VirtualBox

Changeset 32542 in vbox for trunk/src


Ignore:
Timestamp:
Sep 16, 2010 9:10:46 AM (14 years ago)
Author:
vboxsync
Message:

Linux installer (deb/run): only do kill -USR1 if the vboxweb-service init script is there because only VBoxSVC of these packages will catch SIGUSR1 properly

Location:
trunk/src/VBox/Installer/linux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/debian/preinst.in

    r32251 r32542  
    2929  VBOXSVC_PID=`pidof VBoxSVC 2> /dev/null || true`
    3030  if [ -n "$VBOXSVC_PID" ]; then
    31     # try graceful termination; terminate the webservice first
    32     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
    33       invoke-rc.d vboxweb-service stop || true
    34     else
    35       /etc/init.d/vboxweb-service stop || true
     31    if [ -f /etc/init.d/vboxweb-service ]; then
     32      # try graceful termination; terminate the webservice first
     33      if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
     34        invoke-rc.d vboxweb-service stop || true
     35      else
     36        /etc/init.d/vboxweb-service stop || true
     37      fi
     38      kill -USR1 $VBOXSVC_PID
    3639    fi
    37     kill -USR1 $VBOXSVC_PID
    3840    sleep 1
    3941    if pidof VBoxSVC > /dev/null 2>&1; then   
  • trunk/src/VBox/Installer/linux/routines.sh

    r32326 r32542  
    9898    VBOXSVC_PID=`pidof VBoxSVC 2> /dev/null`
    9999    if [ -n "$VBOXSVC_PID" ]; then
    100         kill -USR1 $VBOXSVC_PID
     100        if [ -f /etc/init.d/vboxweb-service ]; then
     101            kill -USR1 $VBOXSVC_PID
     102        fi
    101103        sleep 1
    102104        if pidof VBoxSVC > /dev/null 2>&1; then
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