pcp
[Top] [All Lists]

patch: ensure the $PCP_RUN_DIR exists

To: pcp@xxxxxxxxxxx
Subject: patch: ensure the $PCP_RUN_DIR exists
From: Michael Newton <kimbrr@xxxxxxx>
Date: Thu, 12 Jul 2007 11:28:11 +1000
Sender: pcp-bounce@xxxxxxxxxxx
For his patch
    Fix PCP start script regressions
Nathan wrote
    :
    Also ensure the $PCP_RUN_DIR exists, else pmcd fails to start from
    this script on Windows at least.

Im separatng this into a separate patch as i need to deal differently with
the other issues

--- a/mgmt/pcp/src/pmcd/rc_pcp  2007-07-12 11:21:55.000000000 +1000
+++ b/mgmt/pcp/src/pmcd/rc_pcp  2007-07-12 11:21:18.833873157 +1000
@@ -500,6 +500,7 @@
 Error: PMCD control file '"$PCP_PMCDCONF_PATH"' is missing, cannot start PMCD.'
                exit
            fi
+           [ ! -d $PCP_RUN_DIR ] && mkdir -p $PCP_RUN_DIR
            [ ! -d $RUNDIR ] && mkdir -p $RUNDIR
            cd $RUNDIR


Dr.Michael("Kimba")Newton  kimbrr@xxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • patch: ensure the $PCP_RUN_DIR exists, Michael Newton <=