3 #Save configfiles and logfiles.
8 if [ ! -d ${TMP_DIR}/etc ]
10 mkdir -p ${TMP_DIR}/etc
12 \cp -f /etc/hosts ${TMP_DIR}/etc
18 LOG_ERR "/etc/hosts file move failed."
20 LOG "/etc/hosts file moved ${TMP_DIR}/etc ."
23 if [ -n ${L7VSD_CONF_DIR} -a ${L7VSD_CONF_DIR} != "/" ]
25 if [ ! -d ${TMP_DIR}/l7vs ]
27 mkdir -p ${TMP_DIR}/l7vs
29 mv ${L7VSD_CONF_DIR}/* ${TMP_DIR}/l7vs/ 2> /dev/null
35 LOG_ERR "l7vs config file move failed."
37 LOG "l7vs config file moved ${TMP_DIR}/l7vs ."
41 if [ -n ${L7DIRECTORD_CONF_DIR} -a ${L7DIRECTORD_CONF_DIR} != "/" ]
43 if [ ! -d ${TMP_DIR}/l7director ]
45 mkdir -p ${TMP_DIR}/l7director
47 mv ${L7DIRECTORD_CONF_DIR}/* ${TMP_DIR}/l7director 2> /dev/null
53 LOG_ERR "l7director config file move failed."
55 LOG "l7director config file moved ${TMP_DIR}/l7direcotr ."
59 if [ -n ${L7VS_LOG_DIR} -a ${L7VS_LOG_DIR} != "/" ]
61 if [ ! -d ${TMP_DIR}/log ]
63 mkdir -p ${TMP_DIR}/log
65 mv ${L7VS_LOG_DIR}/* ${TMP_DIR}/log 2> /dev/null
71 LOG_ERR "UM-L7's log file move failed."
73 LOG "UM-L7's log file moved ${TMP_DIR}log ."