mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cloudstack-6258: Log file will be set to cloud.out only if CLOUD_DEBUG is enabled
This commit is contained in:
parent
156b08af5f
commit
42d48fe9ab
@ -33,6 +33,12 @@ ENABLED=0
|
|||||||
|
|
||||||
CMDLINE=$(cat /var/cache/cloud/cmdline)
|
CMDLINE=$(cat /var/cache/cloud/cmdline)
|
||||||
|
|
||||||
|
if [ ! -z $CLOUD_DEBUG ];then
|
||||||
|
LOG_FILE=/var/log/cloud/cloud.out
|
||||||
|
else
|
||||||
|
LOG_FILE=/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
TYPE="router"
|
TYPE="router"
|
||||||
for i in $CMDLINE
|
for i in $CMDLINE
|
||||||
do
|
do
|
||||||
@ -98,7 +104,7 @@ start() {
|
|||||||
then
|
then
|
||||||
if [ "$pid" == "" ]
|
if [ "$pid" == "" ]
|
||||||
then
|
then
|
||||||
(cd $CLOUDSTACK_HOME/systemvm; nohup ./run.sh > /var/log/cloud/cloud.out 2>&1 & )
|
(cd $CLOUDSTACK_HOME/systemvm; nohup ./run.sh > $LOG_FILE 2>&1 & )
|
||||||
pid=$(get_pids)
|
pid=$(get_pids)
|
||||||
echo $pid > /var/run/cloud.pid
|
echo $pid > /var/run/cloud.pid
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user