VirtualBox

Changeset 36480 in vbox for trunk/src/VBox/Installer/solaris


Ignore:
Timestamp:
Mar 31, 2011 1:33:42 PM (14 years ago)
Author:
vboxsync
Message:

Installer/linux+solaris: add parameters to webservice start scripts for tuning log rotation

Location:
trunk/src/VBox/Installer/solaris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/smf-vboxwebsrv.sh

    r31171 r36480  
    22# $Id$
    33
    4 # Copyright (C) 2008-2010 Oracle Corporation
     4# Copyright (C) 2008-2011 Oracle Corporation
    55#
    66# This file is part of VirtualBox Open Source Edition (OSE), as
     
    4848        VW_KEEPALIVE=`/usr/bin/svcprop -p config/keepalive $SMF_FMRI 2>/dev/null`
    4949        [ $? != 0 ] && VW_KEEPALIVE=
     50        VW_ROTATE=`/usr/bin/svcprop -p config/logrotate $SMF_FMRI 2>/dev/null`
     51        [ $? != 0 ] && VW_ROTATE=
     52        VW_LOGSIZE=`/usr/bin/svcprop -p config/logsize $SMF_FMRI 2>/dev/null`
     53        [ $? != 0 ] && VW_LOGSIZE=
     54        VW_LOGINTERVAL=`/usr/bin/svcprop -p config/loginterval $SMF_FMRI 2>/dev/null`
     55        [ $? != 0 ] && VW_LOGINTERVAL=
    5056
    5157        # Provide sensible defaults
     
    5662        [ -z "$VW_CHECK_INTERVAL" ] && VW_CHECK_INTERVAL=5
    5763        [ -z "$VW_KEEPALIVE" ] && VW_KEEPALIVE=1000
    58         exec su - "$VW_USER" -c "/opt/VirtualBox/vboxwebsrv --host \"$VW_HOST\" --port \"$VW_PORT\" --timeout \"$VW_TIMEOUT\" --check-interval \"$VW_CHECK_INTERVAL\" --keepalive \"$VW_KEEPALIVE\""
     64        [ -z "$VW_ROTATE" ] && VW_ROTATE=10
     65        [ -z "$VW_LOGSIZE" ] && VW_LOGSIZE=104857600
     66        [ -z "$VW_LOGINTERVAL" ] && VW_LOGINTERVAL=604800
     67        exec su - "$VW_USER" -c "/opt/VirtualBox/vboxwebsrv --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\""
    5968
    6069        VW_EXIT=$?
  • trunk/src/VBox/Installer/solaris/virtualbox-webservice.xml

    r32388 r36480  
    55# $Id$
    66
    7      Copyright (C) 2008-2010 Oracle Corporation
     7     Copyright (C) 2008-2011 Oracle Corporation
    88
    99     This file is part of VirtualBox Open Source Edition (OSE), as
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette