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.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment