-
-
Save kasramp/dd04dba9597a978044211d7208f13a2e to your computer and use it in GitHub Desktop.
OpenShift stop script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source $OPENSHIFT_CARTRIDGE_SDK_BASH | |
PID=$(ps -ef | grep java.*\.jar | grep -v grep | awk '{ print $2 }') | |
if [ -z "$PID" ] | |
then | |
client_result "Application is already stopped" | |
else | |
kill $PID | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment