Skip to content

Instantly share code, notes, and snippets.

@perfectfoolish
Created February 19, 2016 07:42
Show Gist options
  • Save perfectfoolish/50a7ed45af5dcc23fe6d to your computer and use it in GitHub Desktop.
Save perfectfoolish/50a7ed45af5dcc23fe6d to your computer and use it in GitHub Desktop.

Revisions

  1. Fulei Li created this gist Feb 19, 2016.
    6 changes: 6 additions & 0 deletions stop_server.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/bash
    isExistApp=`ps -ef|grep data-jar-with-dependencies.jar|grep -v grep|awk '{print $2}'`
    if [[ -n $isExistApp ]]; then
    kill -9 $isExistApp
    echo 'app stopped'
    fi