SOURCES: util-vserver-vhashify.cron (NEW), vservers.sysconfig - do...
blues
blues at pld-linux.org
Fri Oct 13 11:49:53 CEST 2006
Author: blues Date: Fri Oct 13 09:49:53 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- do vhashify as peroidic cronjob
---- Files affected:
SOURCES:
util-vserver-vhashify.cron (NONE -> 1.1) (NEW), vservers.sysconfig (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/util-vserver-vhashify.cron
diff -u /dev/null SOURCES/util-vserver-vhashify.cron:1.1
--- /dev/null Fri Oct 13 11:49:53 2006
+++ SOURCES/util-vserver-vhashify.cron Fri Oct 13 11:49:48 2006
@@ -0,0 +1,11 @@
+#!/bin/sh
+#########
+
+. /etc/sysconfig/vservers
+
+if [ "${VHASHIFY_VSERVERS}" ]; then
+ for vserver in ${VHASHIFY_VSERVERS}; do
+ /usr/lib/util-vserver/vhashify --refresh ${vserver}
+ done
+fi
+
================================================================
Index: SOURCES/vservers.sysconfig
diff -u SOURCES/vservers.sysconfig:1.3 SOURCES/vservers.sysconfig:1.4
--- SOURCES/vservers.sysconfig:1.3 Tue Feb 7 15:45:56 2006
+++ SOURCES/vservers.sysconfig Fri Oct 13 11:49:48 2006
@@ -19,6 +19,10 @@
# Note: on stop the init script will stop ALL running vservers
#STARTALL=yes
+# Which vservers you want to vhashify?
+# # Remember - vhashify must be configured first!
+#VHASHIFY_VSERVERS=""
+
# Number of vservers which shall be started in parallel; since most
# initmethods are spending much time in sleeps, it is safe to
# use a high number here, though you should pay attention if you make
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/vservers.sysconfig?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list