Fixes OpenShift

This commit is contained in:
fabianofranz
2014-09-12 03:05:51 -03:00
parent 17288017d8
commit 5c8f016dd6
16 changed files with 191 additions and 0 deletions

8
.openshift/action_hooks/stop Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
source $OPENSHIFT_CARTRIDGE_SDK_BASH
if [ -z "$(ps -ef | grep commafeed | grep -v grep)" ]
then
client_result "Application is already stopped"
else
kill `ps -ef | grep commafeed | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1
fi