Changeset 43799 in vbox
- Timestamp:
- Nov 2, 2012 5:02:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r43452 r43799 787 787 } 788 788 789 # is_process_running(processname) 790 # returns 1 if the process is running, 0 otherwise 791 is_process_running() 792 { 793 if test -z "$1"; then 794 errorprint "missing argument to is_process_running()" 795 exit 1 796 fi 797 798 procname=$1 799 procpid=`ps -eo pid,fname | grep $procname | grep -v grep | awk '{ print $1 }'` 800 if test ! -z "$procpid" && test "$procpid" -ge 0; then 801 return 1 802 fi 803 return 0 804 } 805 806 789 807 # stop_process(processname) 790 808 # failure: depends on [fatal] … … 796 814 fi 797 815 816 # @todo use is_process_running() 798 817 procname=$1 799 818 procpid=`ps -eo pid,fname | grep $procname | grep -v grep | awk '{ print $1 }'` … … 926 945 927 946 # Stop our other daemons, non-fatal 928 stop_process VBoxSVC 929 stop_process VBoxNetDHCP 947 stop_process "VBoxNetDHCP" 930 948 } 931 949 … … 1114 1132 { 1115 1133 fatal=$1 1134 1135 is_process_running "VBoxSVC" 1136 if test "$?" -eq 1; then 1137 errorprint "Cannot uninstall VirtualBox while VBoxSVC is still running." 1138 errorprint "Please shutdown all VMs and VirtualBox frontends before uninstalling VirtualBox." 1139 exit 1 1140 fi 1116 1141 1117 1142 cleanup_install "$fatal"
Note:
See TracChangeset
for help on using the changeset viewer.