VirtualBox

Changeset 56121 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
May 28, 2015 9:21:52 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100646
Message:

Solaris/Installer: attempt fixing sabotaging SMF database updates with querying svcs repeatedly on checkinstall phase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/checkinstall.sh

    r47894 r56121  
    66
    77#
    8 # Copyright (C) 2009-2012 Oracle Corporation
     8# Copyright (C) 2009-2015 Oracle Corporation
    99#
    1010# This file is part of VirtualBox Open Source Edition (OSE), as
     
    124124servicefound=`svcs -H "svc:/application/virtualbox/zoneaccess" 2> /dev/null | grep '^online'`
    125125if test ! -z "$servicefound"; then
    126     infoprint "VirtualBox's zone access service appears to still be running."
     126    infoprint "VirtualBox zone access service appears to still be running."
    127127    infoprint "Halting & removing zone access service..."
    128128    /usr/sbin/svcadm disable -s svc:/application/virtualbox/zoneaccess
     
    195195fi
    196196
    197 # If we are using SVR4 packages then make sure that SMF has finished
    198 # disabling any services left over from a previous installation which
    199 # may interfere with installing new ones.  Should only be relevant on
    200 # Solaris 11.
    201 if test -x "$BIN_PKGINFO"; then
    202     for i in 1 2 3 4 5 6 7 8 9 10; do
    203         svcs -a | grep virtualbox >/dev/null || break
    204         if test "${i}" = "1"; then
    205             printf "Waiting for services from previous installation to be removed."
    206         else
    207             printf "."
    208         fi
    209         sleep 1
    210     done
    211     test "${i}" = "1" || printf "\n"
    212 fi
     197# Make sure that SMF has finished removing any services left over from a
     198# previous installation which may interfere with installing new ones.
     199# This is only relevant on Solaris 11 for SysV packages.
     200#
     201# See BugDB 14838646 for the original problem and @bugref{7866} for
     202# follow up fixes.
     203for i in 1 2 3 4 5 6 7 8 9 10; do
     204    svcs -H "svc:/application/virtualbox/autostart"  >/dev/null 2>&1 ||
     205    svcs -H "svc:/application/virtualbox/webservice" >/dev/null 2>&1 ||
     206    svcs -H "svc:/application/virtualbox/zoneaccess" >/dev/null 2>&1 || break
     207    if test "${i}" = "1"; then
     208        printf "Waiting for services from previous installation to be removed."
     209    elif test "${i}" = "10"; then
     210        printf "\nWarning!!! Some service(s) still appears to not be removed completely!"
     211    else
     212        printf "."
     213    fi
     214    sleep 1
     215done
     216test "${i}" = "1" || printf "\n"
    213217
    214218exit 0
Note: See TracChangeset for help on using the changeset viewer.

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