Changeset 56121 in vbox for trunk/src/VBox/Installer
- Timestamp:
- May 28, 2015 9:21:52 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 100646
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/checkinstall.sh
r47894 r56121 6 6 7 7 # 8 # Copyright (C) 2009-201 2Oracle Corporation8 # Copyright (C) 2009-2015 Oracle Corporation 9 9 # 10 10 # This file is part of VirtualBox Open Source Edition (OSE), as … … 124 124 servicefound=`svcs -H "svc:/application/virtualbox/zoneaccess" 2> /dev/null | grep '^online'` 125 125 if test ! -z "$servicefound"; then 126 infoprint "VirtualBox 'szone access service appears to still be running."126 infoprint "VirtualBox zone access service appears to still be running." 127 127 infoprint "Halting & removing zone access service..." 128 128 /usr/sbin/svcadm disable -s svc:/application/virtualbox/zoneaccess … … 195 195 fi 196 196 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. 203 for 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 215 done 216 test "${i}" = "1" || printf "\n" 213 217 214 218 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.