From 973576c01191b4c16b51d636378af9bfb3dab50b Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 23 Jun 2006 21:48:41 +0000 Subject: [PATCH] - move /etc/planetlab/plc_api generation to plc.d/api and api-config - plc.d scripts are now more verbose; lock down file permissions on /var/log/boot.log --- guest.init | 45 ++++++--------------------------------------- 1 file changed, 6 insertions(+), 39 deletions(-) diff --git a/guest.init b/guest.init index cadd91f..b287ef7 100755 --- a/guest.init +++ b/guest.init @@ -6,7 +6,7 @@ # # description: Manages all PLC services on this machine # -# $Id: guest.init,v 1.16 2006/04/17 17:04:37 mlhuang Exp $ +# $Id: guest.init,v 1.17 2006/04/27 21:50:00 mlhuang Exp $ # # Source function library and configuration @@ -86,44 +86,7 @@ reload () # DB constants are all named the same ln -sf plc_config /etc/planetlab/plc_db - # API constants - cat >/etc/planetlab/plc_api <>/etc/planetlab/plc_api - + # PHP constants cat >/etc/planetlab/php/site_constants.php <<"EOF" EOF + + # API constants are written in plc.d/api } usage() @@ -180,6 +145,8 @@ done # Redirect stdout and stderr of each step to /var/log/boot.log if [ $verbose -eq 0 ] ; then + touch /var/log/boot.log + chmod 600 /var/log/boot.log exec 1>>/var/log/boot.log exec 2>>/var/log/boot.log fi -- 2.43.0