Changeset 2620
- Timestamp:
- 10/13/07 16:17:48 (1 year ago)
- Files:
-
- trunk/doc/configuration.xml (modified) (1 diff)
- trunk/scripts/vserver.functions (modified) (4 diffs)
- trunk/scripts/vserver.start (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/doc/configuration.xml
r2614 r2620 667 667 </description> 668 668 </data> 669 <scalar name="badness"> 670 <description> 671 Contains the bias to be applied to processes in this guest when the OOM-killer strikes. 672 </description> 673 </scalar> 669 674 670 675 <collection name="apps"> trunk/scripts/vserver.functions
r2617 r2620 46 46 declare -a OPTS_VTAG_CREATE=() 47 47 declare -a OPTS_VTAG_ENTER=() 48 declare -a OPTS_VMEMCTRL=() 48 49 49 50 declare -a STOPCMD_PREPARE=() … … 607 608 } 608 609 609 function _generateTagOptions610 {611 local vdir="$1"612 local tag613 614 getFileValue tag "$vdir/tag" "$vdir/context"615 test -n "$tag" || return 0616 617 OPTS_VTAG_CREATE=( --tag "$tag" )618 OPTS_VTAG_ENTER=( --tag "$tag" )619 }620 621 610 function enableInterfaces 622 611 { … … 689 678 } 690 679 680 function _generateTagOptions 681 { 682 local vdir="$1" 683 local tag 684 685 getFileValue tag "$vdir/tag" "$vdir/context" 686 test -n "$tag" || return 0 687 688 OPTS_VTAG_CREATE=( --tag "$tag" ) 689 OPTS_VTAG_ENTER=( --tag "$tag" ) 690 } 691 692 function _generateMemctrlOptions 693 { 694 local vdir="$" 695 local badness 696 697 getFileValue badness "$vdir/badness" 698 test -n "$badness" || return 0 699 700 OPTS_VMEMCTRL=( --badness "$badness" ) 701 } 702 691 703 ## Usage: prepareInit <vserver-directory> 692 704 function prepareInit … … 733 745 _generatePersonalityOptions "$1" 734 746 _generateTagOptions "$1" 747 _generateMemctrlOptions "$1" 735 748 736 749 if test -n "$_IS_FAKEINIT"; then trunk/scripts/vserver.start
r2617 r2620 143 143 $_VSYSCTL --xid self --dir "$VSERVER_DIR"/sysctl --missingok -- \ 144 144 $_VUNAME --xid self --dir "$VSERVER_DIR"/uts --missingok -- \ 145 $_VMEMCTRL --xid self "${OPTS_VMEMCTRL[@]}" -- \ 145 146 "${VSERVER_EXTRA_CMDS[@]}" \ 146 147 $_VUNAME --xid self --set -t context="$VSERVER_DIR" -- \
