Index: tools/batch-cmd
===================================================================
--- tools/batch-cmd	(revision 10632)
+++ tools/batch-cmd	(revision 10634)
@@ -36,18 +36,39 @@
 ## View lvrouted configured flages
 ##
+#cat <<'EOF' > /tmp/command
 #/usr/local/etc/rc.d/lvrouted rcvar | grep flags
+#EOF
 
+##
+## Restart lvrouted
+##
+cat <<'EOF' > /tmp/command
+sleep 30
+nohup /usr/local/etc/rc.d/lvrouted restart
+EOF
+
+##
+## Sync lvrouted and wl-config files
+##
+#cat <<'EOF' > /tmp/command
+#mount -uwo noatime / || exit 1
+#trap "mount -ur /; exit 1" 1 2 3 15
+#trap "mount -ur /; exit 0" 0
 #
-# Sync lvrouted and wl-config files
+#cp -v /tmp/wl-config /tools || exit 1
+#cp -v /tmp/lvrouted.in /usr/local/etc/rc.d/lvrouted || exit 1
+#cp -v /tmp/lvrouted.in /conf/base/etc/local/rc.d/lvrouted || exit 1
 #
-cat <<'EOF' > /tmp/command
-mount -uwo noatime / || exit 1
-trap "mount -ur /; exit 1" 1 2 3 15
-trap "mount -ur /; exit 0" 0
+#/usr/local/etc/rc.d/lvrouted rcvar
+#EOF
 
-cp -v /tmp/wl-config /tools || exit 1
-cp -v /tmp/lvrouted.in /usr/local/etc/rc.d/lvrouted || exit 1
-cp -v /tmp/lvrouted.in /conf/base/etc/local/rc.d/lvrouted || exit 1
-EOF
+##
+## Run /tools/wl-config with random scheduler to avoid gold-rush and killing the
+## config generator server
+##
+#cat <<'EOF' > /tmp/command
+##sleep `expr $$ % 120`
+#/tools/wl-config -b
+#EOF
 
 
@@ -56,4 +77,5 @@
 
 for HOST in $HOSTS; do
+  echo "# Working on $HOST"
   stdout_file="$PREFIX-${HOST%%.}.txt"
   stderr_file="stderr-${HOST%%.}.txt"
@@ -61,5 +83,5 @@
   : > $stderr_file
   {
-    scp -o ConnectTimeout=3 -o BatchMode=yes /tmp/wl-config /tmp/lvrouted.in root@$HOST:/tmp
+    #scp -o ConnectTimeout=3 -o BatchMode=yes /tmp/wl-config /tmp/lvrouted.in root@$HOST:/tmp || exit 1
     cat /tmp/command | ssh -o ConnectTimeout=3 -o BatchMode=yes root@$HOST 'cat >/tmp/command && sh /tmp/command'
   } 1>$stdout_file 2>$stderr_file &
