path: virtualbox_7.2.6-dfsg-3/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec done # Still running? if pidof VBoxSVC > /dev/null 2>&1; then echo "A copy of VirtualBox is currently running. Please close it and try again." echo "Please note that it can take up to ten seconds for VirtualBox (in particular" path: virtualbox_7.2.6-dfsg-3/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec # Wait for VBoxSVC to terminate. for attempt in 1 2 3 4 5 6 7 8 9 10; do [ -n "$(pidof VBoxSVC 2> /dev/null)" ] && sleep 1 done # Still running? path: virtualbox_7.2.6-dfsg-3/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec /etc/init.d/vboxautostart-service stop 2>/dev/null /etc/init.d/vboxweb-service stop 2>/dev/null VBOXSVC_PID=`pidof VBoxSVC 2>/dev/null || true` if [ -n "$VBOXSVC_PID" ]; then # Ask VBoxSVC to terminate gracefully if it is not path: virtualbox_7.2.6-dfsg-3/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh --no-display-output --tcp-connect 10.0.2.2 > /dev/null RETVAL=$? test $RETVAL -eq 0 && sleep 2 && echo `pidof TestExecService` > $PIDFILE if ! test -s "${PIDFILE}"; then RETVAL=5 path: virtualbox_7.2.6-dfsg-3/src/VBox/Installer/linux/routines.sh terminate_proc() { PROC_NAME="${1}" SERVER_PID=`pidof $PROC_NAME 2> /dev/null` if [ "$SERVER_PID" != "" ]; then killall -TERM $PROC_NAME > /dev/null 2>&1 path: virtualbox_7.2.6-dfsg-3/src/VBox/Installer/linux/routines.sh done # Still running? if pidof VBoxSVC > /dev/null 2>&1; then echo 1>&2 "A copy of VirtualBox is currently running. Please close it and try again." abort "Please note that it can take up to ten seconds for VirtualBox to finish running." path: virtualbox_7.2.6-dfsg-3/src/VBox/Installer/linux/routines.sh # Wait for VBoxSVC to terminate. for attempt in 1 2 3 4 5 6 7 8 9 10; do [ -n "$(pidof VBoxSVC 2> /dev/null)" ] && sleep 1 done # Still running? path: virtualbox_7.2.6-dfsg-3/src/VBox/Installer/linux/routines.sh check_running() { VBOXSVC_PID=`pidof VBoxSVC 2> /dev/null` if [ -n "$VBOXSVC_PID" ]; then # Ask VBoxSVC to terminate gracefully if it is not path: virtualbox_7.2.6-dfsg-3/debian/virtualbox.init stop_vms() { if ! pidof VBoxSVC > /dev/null; then return 0 fi path: virtualbox_7.2.6-dfsg-3/debian/virtualbox.postinst # only restart if VirtualBox isn't running if test -x /etc/init.d/virtualbox && ! pidof VBoxSVC > /dev/null; then invoke-rc.d virtualbox restart || true fi path: virtualbox_7.2.6-dfsg-3/src/VBox/Installer/linux/vboxweb-service.sh # ugly: wait until the final process has forked sleep .1 PID=`pidof $binary 2>/dev/null` if [ -n "$PID" ]; then echo "$PID" > $PIDFILE path: virtualbox_7.2.6-dfsg-3/src/VBox/Installer/linux/vboxweb-service.sh done if ! pidof $binary > /dev/null 2>&1; then rm -f $PIDFILE succ_msg "VirtualBox web service stopped" path: virtualbox_7.2.6-dfsg-3/src/VBox/Installer/linux/vboxweb-service.sh # Be careful: wait 10 seconds, making sure that everything is cleaned up. for i in 1 2 3 4 5 6 7 8 9 10 ; do pidof "$binary" 2> /dev/null 2>&1 || break sleep 1; done path: virtualbox_7.2.6-dfsg-3/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh $binary --auto-upgrade --scratch="${SCRATCH_PATH}" --cdrom="${CDROM_PATH}" --no-display-output > /dev/null RETVAL=$? test $RETVAL -eq 0 && sleep 2 && echo `pidof TestExecService` > $PIDFILE if ! test -s "${PIDFILE}"; then RETVAL=5 path: virtualbox_7.2.6-dfsg-3/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-runvm.sh $binary --auto-upgrade --scratch="${SCRATCH_PATH}" --cdrom="${CDROM_PATH}" --no-display-output > /dev/null RETVAL=$? test $RETVAL -eq 0 && sleep 3 && echo `pidof TestExecService` > $PIDFILE if ! test -s "${PIDFILE}"; then RETVAL=5 path: virtualbox_7.2.6-dfsg-3/src/VBox/Installer/linux/vboxballoonctrl-service.sh killproc $binary RETVAL=$? if ! pidof $binary > /dev/null 2>&1; then rm -f $PIDFILE succ_msg "VirtualBox watchdog service stopped" path: virtualbox_7.2.6-dfsg-3/src/VBox/Installer/linux/vboxballoonctrl-service.sh # ugly: wait until the final process has forked sleep .1 PID=`pidof $binary 2>/dev/null` if [ -n "$PID" ]; then echo "$PID" > $PIDFILE path: virtualbox_7.2.6-dfsg-3/src/VBox/Additions/linux/installer/vboxadd-service.sh killproc $binary RETVAL=$? if ! pidof VBoxService > /dev/null 2>&1; then rm -f $PIDFILE succ_msg "VirtualBox Guest Addition service stopped" path: virtualbox_7.2.6-dfsg-3/debian/virtualbox-dkms.postinst if [ "$1" = configure ]; then # only restart if VirtualBox isn't running if test -x /etc/init.d/virtualbox && ! pidof VBoxSVC > /dev/null; then invoke-rc.d virtualbox restart || true fi path: virtualbox_7.2.6-dfsg-3/debian/virtualbox-guest-utils.postinst if [ "$1" = configure ] && [ -n "$2" ] && \ [ -x /usr/share/update-notifier/notify-reboot-required ] && \ pidof VBoxService > /dev/null; then /usr/share/update-notifier/notify-reboot-required || true path: virtualbox_7.2.6-dfsg-3/debian/virtualbox-source.files/postinst.modules.in configure) # only restart if VirtualBox isn't running if test -x /etc/init.d/virtualbox && ! pidof VBoxSVC > /dev/null; then invoke-rc.d virtualbox restart || true fi