- Regenerate the main configuration file from default values overlaid
authorMark Huang <mlhuang@cs.princeton.edu>
Mon, 10 Apr 2006 18:18:14 +0000 (18:18 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Mon, 10 Apr 2006 18:18:14 +0000 (18:18 +0000)
  with site-specific values. If there are no site-specific values for
  the DB and maint passwords, this has the side effect of regenerating
  them on every restart, but that's probably a good thing.

guest.init

index 48f21ba..6c061a7 100755 (executable)
@@ -6,7 +6,7 @@
 #
 # description: Manages all PLC services on this machine
 #
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: guest.init,v 1.13 2006/04/06 21:51:59 mlhuang Exp $
 #
 
 # Source function library and configuration
@@ -33,7 +33,14 @@ nsteps=${#steps[@]}
 # Regenerate configuration files
 reload ()
 {
-    # Load configuration
+    # Regenerate the main configuration file from default values
+    # overlaid with site-specific values.
+    plc-config --xml \
+       /etc/planetlab/default_config.xml \
+       /etc/planetlab/configs/* \
+       >/etc/planetlab/plc_config.xml
+
+    # Shell constants
     plc-config --shell >/etc/planetlab/plc_config
     . /etc/planetlab/plc_config