VirtualBox

Changeset 36480 in vbox


Ignore:
Timestamp:
Mar 31, 2011 1:33:42 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70878
Message:

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

Location:
trunk/src/VBox/Installer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxweb-service.sh.in

    r34603 r36480  
    11#!/bin/sh
    22#
    3 # Linux Additions Guest Additions service daemon init script.
    4 #
    5 # Copyright (C) 2006-2010 Oracle Corporation
     3# VirtualBox web service API daemon init script.
     4#
     5# Copyright (C) 2006-2011 Oracle Corporation
    66#
    77# This file is part of VirtualBox Open Source Edition (OSE), as
     
    1515
    1616# chkconfig: 35 35 65
    17 # description: VirtualBox Additions service
     17# description: VirtualBox web service API
    1818#
    1919### BEGIN INIT INFO
     
    2323# Default-Start:  2 3 4 5
    2424# Default-Stop:   0 1 6
    25 # Description:    VirtualBox Additions Service
     25# Description:    VirtualBox web service API
    2626### END INIT INFO
    2727
     
    298298        [ -n "$VBOXWEB_KEEPALIVE" ]      && PARAMS="$PARAMS -k $VBOXWEB_KEEPALIVE"
    299299        [ -n "$VBOXWEB_LOGFILE" ]        && PARAMS="$PARAMS -F $VBOXWEB_LOGFILE"
     300        [ -n "$VBOXWEB_ROTATE" ]         && PARAMS="$PARAMS -R $VBOXWEB_ROTATE"
     301        [ -n "$VBOXWEB_LOGSIZE" ]        && PARAMS="$PARAMS -S $VBOXWEB_LOGSIZE"
     302        [ -n "$VBOXWEB_LOGINTERVAL" ]    && PARAMS="$PARAMS -I $VBOXWEB_LOGINTERVAL"
    300303        # prevent inheriting this setting to VBoxSVC
    301304        unset VBOX_RELEASE_LOG_DEST
  • 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