You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by an...@apache.org on 2013/10/03 08:06:03 UTC

[05/50] git commit: updated refs/heads/4.2 to 86c9363

CLOUDSTACK-1749: change cloud service name in systemvm


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/78b912e3
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/78b912e3
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/78b912e3

Branch: refs/heads/4.2
Commit: 78b912e38f550d93f1cc008236205b4df300e26f
Parents: 7f08333
Author: Wei Zhou <w....@leaseweb.com>
Authored: Thu Sep 19 10:52:28 2013 +0200
Committer: Wei Zhou <w....@leaseweb.com>
Committed: Thu Sep 19 10:52:28 2013 +0200

----------------------------------------------------------------------
 patches/systemvm/debian/config/etc/init.d/cloud | 26 ++++++++++----------
 1 file changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/78b912e3/patches/systemvm/debian/config/etc/init.d/cloud
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/etc/init.d/cloud b/patches/systemvm/debian/config/etc/init.d/cloud
index b8e6ed2..83853bc 100755
--- a/patches/systemvm/debian/config/etc/init.d/cloud
+++ b/patches/systemvm/debian/config/etc/init.d/cloud
@@ -5,9 +5,9 @@
 # Required-Stop:     $local_fs
 # Should-Start:      
 # Should-Stop:       
-# Default-Start:     2 3 4 5
+# Default-Start:     
 # Default-Stop:      0 1 6
-# Short-Description: 	Start up the cloud.com service
+# Short-Description: 	Start up the CloudStack cloud service
 ### END INIT INFO
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file
@@ -74,7 +74,7 @@ _failure() {
   fi
 }
 RETVAL=$?
-CLOUD_COM_HOME="/usr/local/cloud"
+CLOUDSTACK_HOME="/usr/local/cloud"
 
 # mkdir -p /var/log/vmops
 
@@ -82,23 +82,23 @@ get_pids() {
   local i
   for i in $(ps -ef| grep java | grep -v grep | awk '{print $2}'); 
   do 
-    echo $(pwdx $i) | grep "$CLOUD_COM_HOME"  | awk -F: '{print $1}'; 
+    echo $(pwdx $i) | grep "$CLOUDSTACK_HOME"  | awk -F: '{print $1}'; 
   done
 }
 
 start() {
    local pid=$(get_pids)
    if [ "$pid" != "" ]; then
-       echo "cloud.com sevice is already running, PID = $pid"
+       echo "CloudStack cloud sevice is already running, PID = $pid"
        return 0
    fi
 
-   echo -n "Starting cloud.com service (type=$TYPE) "
-   if [ -f $CLOUD_COM_HOME/systemvm/run.sh ];
+   echo -n "Starting CloudStack cloud service (type=$TYPE) "
+   if [ -f $CLOUDSTACK_HOME/systemvm/run.sh ];
    then
      if [ "$pid" == "" ]
      then
-       (cd $CLOUD_COM_HOME/systemvm; nohup ./run.sh > /var/log/cloud/cloud.out 2>&1 & )
+       (cd $CLOUDSTACK_HOME/systemvm; nohup ./run.sh > /var/log/cloud/cloud.out 2>&1 & )
        pid=$(get_pids)
        echo $pid > /var/run/cloud.pid 
      fi
@@ -107,29 +107,29 @@ start() {
      _failure
    fi
    echo
-   echo 'start' > $CLOUD_COM_HOME/systemvm/user_request
+   echo 'start' > $CLOUDSTACK_HOME/systemvm/user_request
 }
 
 stop() {
   local pid
-  echo -n  "Stopping cloud.com service (type=$TYPE): "
+  echo -n  "Stopping CloudStack cloud service (type=$TYPE): "
   for pid in $(get_pids)
   do
     kill $pid
   done
   _success
   echo
-  echo 'stop' > $CLOUD_COM_HOME/systemvm/user_request
+  echo 'stop' > $CLOUDSTACK_HOME/systemvm/user_request
 }
 
 status() {
   local pids=$(get_pids)
   if [ "$pids" == "" ]
   then
-    echo "cloud.com service is not running"
+    echo "CloudStack cloud service is not running"
     return 1
   fi
-  echo "cloud.com service (type=$TYPE) is running: process id: $pids"
+  echo "CloudStack cloud service (type=$TYPE) is running: process id: $pids"
   return 0
 }