You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by el...@apache.org on 2018/04/21 20:07:23 UTC

incubator-ratis git commit: RATIS-223. Bash script to stop Ratis started in Ratis-examples. Contributed by Vinay Banakar.

Repository: incubator-ratis
Updated Branches:
  refs/heads/master 430932441 -> bbc79cf46


RATIS-223. Bash script to stop Ratis started in Ratis-examples. Contributed by Vinay Banakar.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ratis/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ratis/commit/bbc79cf4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ratis/tree/bbc79cf4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ratis/diff/bbc79cf4

Branch: refs/heads/master
Commit: bbc79cf4621536d212ee1caffaabb54eba4263a6
Parents: 4309324
Author: Márton Elek <el...@apache.org>
Authored: Sat Apr 21 22:02:14 2018 +0200
Committer: Márton Elek <el...@apache.org>
Committed: Sat Apr 21 22:02:24 2018 +0200

----------------------------------------------------------------------
 ratis-examples/src/main/bin/stop-all.sh | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ratis/blob/bbc79cf4/ratis-examples/src/main/bin/stop-all.sh
----------------------------------------------------------------------
diff --git a/ratis-examples/src/main/bin/stop-all.sh b/ratis-examples/src/main/bin/stop-all.sh
new file mode 100755
index 0000000..aaf7519
--- /dev/null
+++ b/ratis-examples/src/main/bin/stop-all.sh
@@ -0,0 +1,18 @@
+ #!/usr/bin/env bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+ kill $(jps | grep 'ratis-examples' | grep -v 'grep' | awk '{print $1}')
+ echo "All Ratis examples have been stopped."