Changeset 20405 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Jun 8, 2009 1:37:56 PM (15 years ago)
- Location:
- trunk/src/VBox/Installer/solaris
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/smf-vboxwebsrv.sh
-
Property svn:executable
set to
*
r19201 r20405 57 57 [ -z "$VW_TIMEOUT" ] && VW_TIMEOUT=20 58 58 [ -z "$VW_CHECK_INTERVAL" ] && VW_CHECK_INTERVAL=5 59 su - "$VW_USER" -c "/opt/VirtualBox/vboxwebsrv --background--host \"$VW_HOST\" --port \"$VW_PORT\" --timeout \"$VW_TIMEOUT\" --check-interval \"$VW_CHECK_INTERVAL\""59 exec su - "$VW_USER" -c "/opt/VirtualBox/vboxwebsrv --host \"$VW_HOST\" --port \"$VW_PORT\" --timeout \"$VW_TIMEOUT\" --check-interval \"$VW_CHECK_INTERVAL\"" 60 60 61 61 VW_EXIT=$? … … 63 63 echo "vboxwebsrv failed with $VW_EXIT." 64 64 VW_EXIT=1 65 fi66 67 # Bump per-process semaphore limit of VBoxSVC68 PRCTLBIN=`which prctl`69 if test ! -f "$PRTCLBIN"; then70 # Wait for VBoxSVC to spawn71 TRIES=072 while test $TRIES -le 3; do73 VBOXSVC_PID=`ps -eo pid,fname | grep VBoxSVC | grep -v grep | cut -f 1 -d " "`74 if test $VBOXSVC_PID -ge 0; then75 $PRCTLBIN -r -n project.max-sem-ids -v 1024 $VBOXSVC_PID76 if test $? -eq 0; then77 echo "Successfully bumped VBoxSVC (pid $VBOXSVC_PID) semaphore id limit to 1024."78 else79 echo "Failed to bump VBoxSVC (pid $VBOXSVC_PID) semaphore id limit."80 fi81 break82 else83 sleep 184 fi85 TRIES=`expr $TRIES + 1`86 done87 if test $TRIES -eq 3; then88 echo "Stopped waiting for VBoxSVC to spawn..."89 echo "Failed to bump VBoxSVC process' semaphore id limit."90 fi91 else92 echo "Failed to find prctl to bump VBoxSVC semaphore id limit."93 echo "As a result, not more than 100 VMs can be started."94 65 fi 95 66 ;; -
Property svn:executable
set to
-
trunk/src/VBox/Installer/solaris/virtualbox-webservice.xml
r18265 r20405 76 76 type='method' 77 77 name='stop' 78 exec=' /opt/VirtualBox/smf-vboxwebsrv %m %{restarter/contract}'78 exec=':kill' 79 79 timeout_seconds='15'> 80 80 <method_context> … … 82 82 </method_context> 83 83 </exec_method> 84 85 <property_group name='startd' type='framework'> 86 <!-- The default contract restarter behavior is not appropriate, 87 it will kill VMs if the service is restarted. --> 88 <propval name='duration' type='astring' value='child' /> 89 <!-- sub-process core dumps/signals shouldn't restart session --> 90 <propval name='ignore_error' type='astring' value='core,signal' /> 91 </property_group> 84 92 85 93 <property_group name='config' type='application'>
Note:
See TracChangeset
for help on using the changeset viewer.