Changeset 19200 in vbox
- Timestamp:
- Apr 27, 2009 9:44:37 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/smf-vboxwebsrv.sh
r14788 r19200 64 64 VW_EXIT=1 65 65 fi 66 67 # Bump per-process semaphore limit of VBoxSVC 68 PRCTLBIN=`which prctl` 69 if test ! -f "$PRTCLBIN"; then 70 # Wait for VBoxSVC to spawn 71 TRIES=0 72 while test $TRIES -le 3; do 73 VBOXSVC_PID=`ps -eo pid,fname | grep VBoxSVC | grep -v grep | cut -f 1 -d " "` 74 if test $VBOXSVC_PID -ge 0; then 75 $PRCTLBIN -r -n project.max-sem-ids -v 1024 $VBOXSVC_PID 76 if test $? -eq 0; then 77 echo "Successfully bumped VBoxSVC (pid $VBOXSVC_PID) semaphore id limit to 1024." 78 else 79 echo "Failed to bump VBoxSVC (pid $VBOXSVC_PID) semaphore id limit." 80 fi 81 break 82 else 83 sleep 1 84 fi 85 TRIES=`expr $TRIES + 1` 86 done 87 if test $TRIES -eq 3; then 88 echo "Stopped waiting for VBoxSVC to spawn..." 89 echo "Failed to bump VBoxSVC process' semaphore id limit." 90 fi 91 else 92 echo "Failed to find prctl to bump VBoxSVC semaphore id limit." 93 echo "As a result, not more than 99 VMs can be started." 94 fi 66 95 ;; 67 96 stop)
Note:
See TracChangeset
for help on using the changeset viewer.