- Timestamp:
- Sep 8, 2010 3:58:41 PM (14 years ago)
- Location:
- trunk/src/VBox/Installer/linux
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/install.sh
r32183 r32326 113 113 info "VirtualBox Version $VERSION r$SVNREV ($BUILD) installer" 114 114 115 check_root # Make sure that we were invoked as root... 116 check_running # ... and that no copy of VirtualBox was running at the time. 115 116 # Make sure that we were invoked as root... 117 check_root 117 118 118 119 # Set up logging before anything else 119 120 create_log $LOG 121 122 # Now stop the web service otherwise it will keep VBoxSVC running 123 stop_init_script vboxweb-service 124 125 # Now check if no VBoxSVC daemon is running 126 check_running 127 120 128 log "VirtualBox $VERSION r$SVNREV installer, built $BUILD." 121 129 log "" … … 453 461 RC_SCRIPT=1 454 462 fi 463 start_init_script vboxweb-service 455 464 log "" 456 465 log "End of the output from the Linux kernel build system." -
trunk/src/VBox/Installer/linux/routines.sh
r31664 r32326 96 96 97 97 check_running() { 98 if pidof VBoxSVC > /dev/null 2>&1; then 99 echo 1>&2 "A copy of VirtualBox is currently running. Please close it and try again." 100 abort "Please note that it can take up to ten seconds for VirtualBox to finish running." 98 VBOXSVC_PID=`pidof VBoxSVC 2> /dev/null` 99 if [ -n "$VBOXSVC_PID" ]; then 100 kill -USR1 $VBOXSVC_PID 101 sleep 1 102 if pidof VBoxSVC > /dev/null 2>&1; then 103 echo 1>&2 "A copy of VirtualBox is currently running. Please close it and try again." 104 abort "Please note that it can take up to ten seconds for VirtualBox to finish running." 105 fi 101 106 fi 102 107 } -
trunk/src/VBox/Installer/linux/uninstall.sh
r32183 r32326 28 28 fi 29 29 30 check_root 31 30 32 [ -z "$DKMS" ] && DKMS=`which dkms 2> /dev/null` 31 33 [ -z "$CONFIG_DIR" ] && CONFIG_DIR="/etc/vbox" … … 33 35 [ -z "$CONFIG_FILES" ] && CONFIG_FILES="filelist" 34 36 [ -z "$DEFAULT_FILES" ] && DEFAULT_FILES=`pwd`/deffiles 35 36 # Terminate Server and VBoxNetDHCP if running37 terminate_proc VBoxSVC38 terminate_proc VBoxNetDHCP39 37 40 38 # Find previous installation … … 52 50 # Stop the web service 53 51 stop_init_script vboxweb-service 52 # Do this check here after we terminated the web service 53 check_running 54 # Terminate VBoxNetDHCP if running 55 terminate_proc VBoxNetDHCP 54 56 delrunlevel vboxweb-service > /dev/null 2>&1 55 57 remove_init_script vboxweb-service
Note:
See TracChangeset
for help on using the changeset viewer.