--- vz.initd.orig 2006-09-06 16:00:38.000000000 +0400 +++ vz.initd 2006-09-06 16:01:20.000000000 +0400 @@ -32,16 +32,6 @@ return 1 fi - # prevent dumb users from failure - if [ ! -e /dev/vzctl ]; then - eerror "Missing device node /dev/vzctl" - einfo - einfo "Please create the vzctl device node using the following command:" - einfo " /bin/mknod /dev/vzctl c 126 0" - einfo - return 1 - fi - if [ -z "${VE0CPUUNITS}" ]; then ewarn "VE0CPUUNITS is not set in /etc/conf.d/vz; using default value of 1000" VE0CPUUNITS=1000 @@ -215,6 +205,15 @@ done eend + if [ ! -e /dev/vzctl ]; then + eerror "Missing device node /dev/vzctl" + einfo + einfo "Please create the vzctl device node using the following command:" + einfo " /bin/mknod /dev/vzctl c 126 0" + einfo + return 1 + fi + start_net msg=$(${VZCTL} set 0 --cpuunits ${VE0CPUUNITS} 2>&1)