Changeset 40130 in vbox for trunk/src/VBox/Installer/solaris
- Timestamp:
- Feb 14, 2012 3:17:35 PM (13 years ago)
- Location:
- trunk/src/VBox/Installer/solaris
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/smf-vboxwebsrv.sh
r36748 r40130 2 2 # $Id$ 3 3 4 # Copyright (C) 2008-201 1Oracle Corporation4 # Copyright (C) 2008-2012 Oracle Corporation 5 5 # 6 6 # This file is part of VirtualBox Open Source Edition (OSE), as … … 42 42 VW_PORT=`/usr/bin/svcprop -p config/port $SMF_FMRI 2>/dev/null` 43 43 [ $? != 0 ] && VW_PORT= 44 VW_SSL_KEYFILE=`/usr/bin/svcprop -p config/ssl_keyfile $SMF_FMRI 2>/dev/null` 45 [ $? != 0 ] && VW_SSL_KEYFILE= 46 VW_SSL_PASSWORDFILE=`/usr/bin/svcprop -p config/ssl_passwordfile $SMF_FMRI 2>/dev/null` 47 [ $? != 0 ] && VW_SSL_PASSWORDFILE= 48 VW_SSL_CACERT=`/usr/bin/svcprop -p config/ssl_cacert $SMF_FMRI 2>/dev/null` 49 [ $? != 0 ] && VW_SSL_CACERT= 50 VW_SSL_CAPATH=`/usr/bin/svcprop -p config/ssl_capath $SMF_FMRI 2>/dev/null` 51 [ $? != 0 ] && VW_SSL_CAPATH= 52 VW_SSL_DHFILE=`/usr/bin/svcprop -p config/ssl_dhfile $SMF_FMRI 2>/dev/null` 53 [ $? != 0 ] && VW_SSL_DHFILE= 54 VW_SSL_RANDFILE=`/usr/bin/svcprop -p config/ssl_randfile $SMF_FMRI 2>/dev/null` 55 [ $? != 0 ] && VW_SSL_RANDFILE= 44 56 VW_TIMEOUT=`/usr/bin/svcprop -p config/timeout $SMF_FMRI 2>/dev/null` 45 57 [ $? != 0 ] && VW_TIMEOUT= 46 58 VW_CHECK_INTERVAL=`/usr/bin/svcprop -p config/checkinterval $SMF_FMRI 2>/dev/null` 47 59 [ $? != 0 ] && VW_CHECK_INTERVAL= 60 VW_THREADS=`/usr/bin/svcprop -p config/threads $SMF_FMRI 2>/dev/null` 61 [ $? != 0 ] && VW_THREADS= 48 62 VW_KEEPALIVE=`/usr/bin/svcprop -p config/keepalive $SMF_FMRI 2>/dev/null` 49 63 [ $? != 0 ] && VW_KEEPALIVE= 64 VW_AUTHENTICATION=`/usr/bin/svcprop -p config/authentication $SMF_FMRI 2>/dev/null` 65 [ $? != 0 ] && VW_AUTHENTICATION= 66 VW_LOGFILE=`/usr/bin/svcprop -p config/logfile $SMF_FMRI 2>/dev/null` 67 [ $? != 0 ] && VW_LOGFILE= 50 68 VW_ROTATE=`/usr/bin/svcprop -p config/logrotate $SMF_FMRI 2>/dev/null` 51 69 [ $? != 0 ] && VW_ROTATE= … … 61 79 [ -z "$VW_TIMEOUT" ] && VW_TIMEOUT=20 62 80 [ -z "$VW_CHECK_INTERVAL" ] && VW_CHECK_INTERVAL=5 81 [ -z "$VW_THREADS" ] && VW_THREADS=100 63 82 [ -z "$VW_KEEPALIVE" ] && VW_KEEPALIVE=100 64 83 [ -z "$VW_ROTATE" ] && VW_ROTATE=10 65 84 [ -z "$VW_LOGSIZE" ] && VW_LOGSIZE=104857600 66 85 [ -z "$VW_LOGINTERVAL" ] && VW_LOGINTERVAL=86400 67 exec su - "$VW_USER" -c "/opt/VirtualBox/vboxwebsrv --background --host \"$VW_HOST\" --port \"$VW_PORT\" --timeout \"$VW_TIMEOUT\" --check-interval \"$VW_CHECK_INTERVAL\" --keepalive \"$VW_KEEPALIVE\" --logrotate \"$VW_ROTATE\" --logsize \"$VW_LOGSIZE\" --loginterval \"$VW_LOGINTERVAL\"" 86 87 # Derived and optional settings 88 VW_SSL= 89 [ -n "$VW_SSL_KEYFILE" ] && VW_SSL=--ssl 90 [ -n "$VW_SSL_KEYFILE" ] && VW_SSL_KEYFILE="--keyfile $VW_SSL_KEYFILE" 91 [ -n "$VW_SSL_PASSWORDFILE" ] && VW_SSL_PASSWORDFILE="--passwordfile $VW_SSL_PASSWORDFILE" 92 [ -n "$VW_SSL_CACERT" ] && VW_SSL_CACERT="--cacert $VW_SSL_CACERT" 93 [ -n "$VW_SSL_CAPATH" ] && VW_SSL_CAPATH="--capath $VW_SSL_CAPATH" 94 [ -n "$VW_SSL_DHFILE" ] && VW_SSL_DHFILE="--dhfile $VW_SSL_DHFILE" 95 [ -n "$VW_SSL_RANDFILE" ] && VW_SSL_RANDFILE="--randfile $VW_SSL_RANDFILE" 96 [ -n "$VW_LOGFILE" ] && VW_LOGFILE="--logfile $VW_LOGFILE" 97 98 exec su - "$VW_USER" -c "/opt/VirtualBox/vboxwebsrv --background --host \"$VW_HOST\" --port \"$VW_PORT\" $VW_SSL $VW_SSL_KEYFILE $VW_SSL_PASSWORDFILE $VW_SSL_CACERT $VW_SSL_CAPATH $VW_SSL_DHFILE $VW_SSL_RANDFILE --timeout \"$VW_TIMEOUT\" --check-interval \"$VW_CHECK_INTERVAL\" --threads \"$VW_THREADS\" --keepalive \"$VW_KEEPALIVE\" --authentication \"$VW_AUTHENTICATION\" $VW_LOGFILE --logrotate \"$VW_ROTATE\" --logsize \"$VW_LOGSIZE\" --loginterval \"$VW_LOGINTERVAL\"" 68 99 69 100 VW_EXIT=$? -
trunk/src/VBox/Installer/solaris/virtualbox-webservice.xml
r36520 r40130 5 5 # $Id$ 6 6 7 Copyright (C) 2008-201 1Oracle Corporation7 Copyright (C) 2008-2012 Oracle Corporation 8 8 9 9 This file is part of VirtualBox Open Source Edition (OSE), as … … 87 87 <propval name='host' type='astring' value='localhost' /> 88 88 <propval name='port' type='integer' value='18083' /> 89 <propval name='keyfile' type='astring' value='' /> 89 90 </property_group> 90 91
Note:
See TracChangeset
for help on using the changeset viewer.