Skip to content

Commit 78b912e

Browse files
committed
CLOUDSTACK-1749: change cloud service name in systemvm
1 parent 7f08333 commit 78b912e

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

  • patches/systemvm/debian/config/etc/init.d

‎patches/systemvm/debian/config/etc/init.d/cloud‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# Required-Stop: $local_fs
66
# Should-Start:
77
# Should-Stop:
8-
# Default-Start: 2 3 4 5
8+
# Default-Start:
99
# Default-Stop: 0 1 6
10-
# Short-Description: Start up the cloud.com service
10+
# Short-Description: Start up the CloudStack cloud service
1111
### END INIT INFO
1212
# Licensed to the Apache Software Foundation (ASF) under one
1313
# or more contributor license agreements. See the NOTICE file
@@ -74,31 +74,31 @@ _failure() {
7474
fi
7575
}
7676
RETVAL=$?
77-
CLOUD_COM_HOME="/usr/local/cloud"
77+
CLOUDSTACK_HOME="/usr/local/cloud"
7878

7979
# mkdir -p /var/log/vmops
8080

8181
get_pids() {
8282
local i
8383
for i in $(ps -ef| grep java | grep -v grep | awk '{print $2}');
8484
do
85-
echo $(pwdx $i) | grep "$CLOUD_COM_HOME" | awk -F: '{print $1}';
85+
echo $(pwdx $i) | grep "$CLOUDSTACK_HOME" | awk -F: '{print $1}';
8686
done
8787
}
8888

8989
start() {
9090
local pid=$(get_pids)
9191
if [ "$pid" != "" ]; then
92-
echo "cloud.com sevice is already running, PID = $pid"
92+
echo "CloudStack cloud sevice is already running, PID = $pid"
9393
return 0
9494
fi
9595

96-
echo -n "Starting cloud.com service (type=$TYPE) "
97-
if [ -f $CLOUD_COM_HOME/systemvm/run.sh ];
96+
echo -n "Starting CloudStack cloud service (type=$TYPE) "
97+
if [ -f $CLOUDSTACK_HOME/systemvm/run.sh ];
9898
then
9999
if [ "$pid" == "" ]
100100
then
101-
(cd $CLOUD_COM_HOME/systemvm; nohup ./run.sh > /var/log/cloud/cloud.out 2>&1 & )
101+
(cd $CLOUDSTACK_HOME/systemvm; nohup ./run.sh > /var/log/cloud/cloud.out 2>&1 & )
102102
pid=$(get_pids)
103103
echo $pid > /var/run/cloud.pid
104104
fi
@@ -107,29 +107,29 @@ start() {
107107
_failure
108108
fi
109109
echo
110-
echo 'start' > $CLOUD_COM_HOME/systemvm/user_request
110+
echo 'start' > $CLOUDSTACK_HOME/systemvm/user_request
111111
}
112112

113113
stop() {
114114
local pid
115-
echo -n "Stopping cloud.com service (type=$TYPE): "
115+
echo -n "Stopping CloudStack cloud service (type=$TYPE): "
116116
for pid in $(get_pids)
117117
do
118118
kill $pid
119119
done
120120
_success
121121
echo
122-
echo 'stop' > $CLOUD_COM_HOME/systemvm/user_request
122+
echo 'stop' > $CLOUDSTACK_HOME/systemvm/user_request
123123
}
124124

125125
status() {
126126
local pids=$(get_pids)
127127
if [ "$pids" == "" ]
128128
then
129-
echo "cloud.com service is not running"
129+
echo "CloudStack cloud service is not running"
130130
return 1
131131
fi
132-
echo "cloud.com service (type=$TYPE) is running: process id: $pids"
132+
echo "CloudStack cloud service (type=$TYPE) is running: process id: $pids"
133133
return 0
134134
}
135135

0 commit comments

Comments
 (0)