- don't source shell configuration in /etc/plc.d/functions, which is
authorMark Huang <mlhuang@cs.princeton.edu>
Tue, 25 Apr 2006 21:18:19 +0000 (21:18 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Tue, 25 Apr 2006 21:18:19 +0000 (21:18 +0000)
  also sourced by the guest initscript, which tries to regenerate the
  configuration and will pick up stale values

13 files changed:
plc.d/api
plc.d/bootcd
plc.d/bootmanager
plc.d/crond
plc.d/functions
plc.d/gpg
plc.d/httpd
plc.d/mail
plc.d/network
plc.d/postgresql
plc.d/ssh
plc.d/ssl
plc.d/syslog

index ecbcdef..61dd0c0 100755 (executable)
--- a/plc.d/api
+++ b/plc.d/api
@@ -7,11 +7,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: api,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
+# $Id: api,v 1.2 2006/04/10 16:00:47 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
 
 # Export so that we do not have to specify -p to psql invocations
 export PGPORT=$PLC_DB_PORT
index 0a3c0a8..dc7bf5e 100755 (executable)
@@ -7,11 +7,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: bootcd,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
 
 case "$1" in
     start)
index e93cffa..f2d08c8 100755 (executable)
@@ -7,11 +7,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: bootmanager,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
 
 case "$1" in
     start)
index 67cfb3f..5bb5ba7 100755 (executable)
@@ -7,11 +7,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: crond,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
 
 case "$1" in
     start)
index 71aaf3f..92a236f 100644 (file)
@@ -5,7 +5,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: functions,v 1.2 2006/04/07 04:27:56 mlhuang Exp $
+# $Id: functions,v 1.3 2006/04/10 15:53:49 mlhuang Exp $
 #
 
 export PATH=/sbin:/bin:/usr/bin:/usr/sbin
@@ -13,11 +13,6 @@ export PATH=/sbin:/bin:/usr/bin:/usr/sbin
 # Source function library
 . /etc/init.d/functions
 
-# Source configuration if it exists
-if [ -f /etc/planetlab/plc_config ] ; then
-    . /etc/planetlab/plc_config
-fi
-
 # Total number of errors
 ERRORS=0
 
index 12b8d96..52f6aed 100755 (executable)
--- a/plc.d/gpg
+++ b/plc.d/gpg
@@ -7,11 +7,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: gpg,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
 
 case "$1" in
     start)
index 637c210..5dba112 100755 (executable)
@@ -7,11 +7,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: httpd,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
 
 # Default locations
 DocumentRoot=/var/www/html
index 129bb3d..6698a68 100755 (executable)
@@ -7,11 +7,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: httpd,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
+# $Id: mail,v 1.1 2006/04/24 15:49:32 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
 
 case "$1" in
     start)
index b412d18..c00f9d3 100755 (executable)
@@ -7,11 +7,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: network,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
 
 case "$1" in
     start)
index 2f46e3c..9095828 100755 (executable)
@@ -7,11 +7,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: postgresql,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
 
 # Default locations
 PGDATA=/var/lib/pgsql/data
index 1476cf1..1cc3ac1 100755 (executable)
--- a/plc.d/ssh
+++ b/plc.d/ssh
@@ -7,11 +7,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: ssh,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
 
 # XXX Could make these configurable
 KEY_TYPE_ROOT=rsa
index 77c2445..fc3fa74 100755 (executable)
--- a/plc.d/ssl
+++ b/plc.d/ssl
@@ -7,11 +7,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: ssl,v 1.2 2006/04/07 03:36:04 mlhuang Exp $
+# $Id: ssl,v 1.3 2006/04/07 04:28:16 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
 
 case "$1" in
     start)
index fe3c1bd..9dc7a06 100755 (executable)
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: syslog,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
 
 case "$1" in
     start)