This is an automated email from the ASF dual-hosted git repository.
gosonzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 5fb5778 [INLONG-705] add stop.sh in dataproxy (#540)
5fb5778 is described below
commit 5fb5778fb4929be73f55a36171bc9df47e84a843
Author: ziruipeng <[email protected]>
AuthorDate: Sat Jul 10 14:57:00 2021 +0800
[INLONG-705] add stop.sh in dataproxy (#540)
Co-authored-by: stingpeng <[email protected]>
---
inlong-dataproxy/bin/flume-ng | 0
inlong-dataproxy/bin/prepare_env.sh | 0
inlong-dataproxy/bin/start.sh | 0
inlong-dataproxy/bin/{start.sh => stop.sh} | 5 +++--
inlong-dataproxy/dataproxy-dist/src/main/assembly/bin.xml | 2 ++
5 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/inlong-dataproxy/bin/flume-ng b/inlong-dataproxy/bin/flume-ng
old mode 100644
new mode 100755
diff --git a/inlong-dataproxy/bin/prepare_env.sh
b/inlong-dataproxy/bin/prepare_env.sh
old mode 100644
new mode 100755
diff --git a/inlong-dataproxy/bin/start.sh b/inlong-dataproxy/bin/start.sh
old mode 100644
new mode 100755
diff --git a/inlong-dataproxy/bin/start.sh b/inlong-dataproxy/bin/stop.sh
similarity index 83%
copy from inlong-dataproxy/bin/start.sh
copy to inlong-dataproxy/bin/stop.sh
index 8ef6819..6b3e10a 100644
--- a/inlong-dataproxy/bin/start.sh
+++ b/inlong-dataproxy/bin/stop.sh
@@ -18,5 +18,6 @@
# specific language governing permissions and limitations
# under the License.
#
-chmod 777 bin/flume-ng
-nohup bin/flume-ng agent --conf conf/ -f conf/flume.conf -n agent1
--no-reload-conf > nohup.out 2>&1 &
\ No newline at end of file
+
+# this program kills the dataProxy
+ps -ef |grep "org.apache.flume.node.Application"|grep
"apache-inlong-dataproxy"|grep -v grep|awk '{print $2}'|xargs kill -9
diff --git a/inlong-dataproxy/dataproxy-dist/src/main/assembly/bin.xml
b/inlong-dataproxy/dataproxy-dist/src/main/assembly/bin.xml
index b3ff5c9..70078f0 100644
--- a/inlong-dataproxy/dataproxy-dist/src/main/assembly/bin.xml
+++ b/inlong-dataproxy/dataproxy-dist/src/main/assembly/bin.xml
@@ -102,6 +102,8 @@
<fileSet>
<directory>bin</directory>
+ <fileMode>755</fileMode>
+ <directoryMode>755</directoryMode>
<outputDirectory>bin</outputDirectory>
</fileSet>