]> git.pld-linux.org Git - packages/util-vserver.git/commitdiff
- do vhashify as peroidic cronjob
authorPaweł Gołaszewski <blues@pld-linux.org>
Fri, 13 Oct 2006 09:49:48 +0000 (09:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    util-vserver-vhashify.cron -> 1.1
    vservers.sysconfig -> 1.4

util-vserver-vhashify.cron [new file with mode: 0644]
vservers.sysconfig

diff --git a/util-vserver-vhashify.cron b/util-vserver-vhashify.cron
new file mode 100644 (file)
index 0000000..bd18eb8
--- /dev/null
@@ -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 4cd82c99001700e46638a3744c52e0f6803e1c6b..0720dc2fe4744c02dd4b2f60a52f7e41bb8989de 100644 (file)
@@ -19,6 +19,10 @@ MARKS="default"
 # 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
This page took 0.078608 seconds and 4 git commands to generate.