commit | 39bdf8e4012c930ca90767e3c675bf94da516421 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Tue Jan 25 20:58:04 2011 +0300 |
committer | Kir Kolyshkin <kir@openvz.org> | Tue Jan 25 21:02:42 2011 +0300 |
tree | bcc3624d340b74d5303967fc00de707ac640aac9 | |
parent | b1b77d8579ade256f683625c994c10d04be8f38a [diff] |
etc/init.d/vz*: add kludge to modify default CT config On a vswap-enabled kernel, it makes great sense to use vswap-enabled CT configuration by default. For the sake of better solution, let's check in vz initscript whether we run vswap-enabled kernel and if yes, modify the value of CONFIGFILE= parameter in /etc/vz/vz.conf to be 'vswap-256m' instead of 'basic'. If CONFIGFILE is modified, do nothing. Signed-off-by: Kir Kolyshkin <kir@openvz.org>