Changeset 32251 in vbox for trunk/src/VBox/Installer/linux/rpm
- Timestamp:
- Sep 6, 2010 2:38:46 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 65578
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec
r32237 r32251 145 145 146 146 # check for active VMs 147 if pidof VBoxSVC > /dev/null 2>&1; then 148 echo "A copy of VirtualBox is currently running. Please close it and try again. Please note" 149 echo "that it can take up to ten seconds for VirtualBox (in particular the VBoxSVC daemon) to" 150 echo "finish running." 151 exit 1 147 VBOXSVC_PID=`pidof VBoxSVC 2>/dev/null || true` 148 if [ -n "$VBOXSVC_PID" ]; then 149 # try graceful termination; terminate the webservice first 150 /etc/init.d/vboxweb-service stop || true 151 kill -USR1 $VBOXSVC_PID 152 sleep 1 153 if pidof VBoxSVC > /dev/null 2>&1; then 154 echo "A copy of VirtualBox is currently running. Please close it and try again. Please note" 155 echo "that it can take up to ten seconds for VirtualBox (in particular the VBoxSVC daemon) to" 156 echo "finish running." 157 exit 1 158 fi 152 159 fi 153 160 … … 305 312 %preun 306 313 # check for active VMs 307 if pidof VBoxSVC > /dev/null 2>&1; then 308 echo "A copy of VirtualBox is currently running. Please close it and try again. Please note" 309 echo "that it can take up to ten seconds for VirtualBox (in particular the VBoxSVC daemon) to" 310 echo "finish running." 311 exit 1 314 VBOXSVC_PID=`pidof VBoxSVC 2>/dev/null || true` 315 if [ -n "$VBOXSVC_PID" ]; then 316 # try graceful termination; terminate the webservice first 317 /etc/init.d/vboxweb-service stop || true 318 sleep 1 319 if pidof VBoxSVC > /dev/null 2>&1; then 320 echo "A copy of VirtualBox is currently running. Please close it and try again. Please note" 321 echo "that it can take up to ten seconds for VirtualBox (in particular the VBoxSVC daemon) to" 322 echo "finish running." 323 exit 1 324 fi 312 325 fi 313 326
Note:
See TracChangeset
for help on using the changeset viewer.