From a993e98738ba653b7d2bdbf0772d8f237c17f4b0 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Mon, 10 Apr 2006 18:18:14 +0000 Subject: [PATCH] - Regenerate the main configuration file from default values overlaid 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 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/guest.init b/guest.init index 48f21ba..6c061a7 100755 --- a/guest.init +++ b/guest.init @@ -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 -- 2.47.0