Changeset 2775

Show
Ignore:
Timestamp:
08/26/08 00:55:45 (3 months ago)
Author:
dhozac
Message:

Unmount the hierarchy too.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/sysv/util-vserver

    r2771 r2775  
    6161} 
    6262 
     63function umount_cgroup() 
     64{ 
     65    _generateCgroupOptions 
     66    test -n "$CGROUP_MNT" || return 0 
     67    $_UMOUNT "$CGROUP_MNT" 
     68} 
     69 
    6370function start() 
    6471{ 
     
    9299    _endResult $? 
    93100    local retval=$? 
     101    if hasCgroup; then 
     102        _beginResult $"Unmounting cgroup-hierarchy" 
     103        umount_cgroup 
     104        _endResult $? 
     105    fi 
    94106    $_RM -f "$lockfile" 
    95107    return $retval