Files
commafeed/.openshift/action_hooks/stop

9 lines
263 B
Plaintext
Raw Normal View History

2014-09-12 03:05:51 -03:00
#!/bin/bash
source $OPENSHIFT_CARTRIDGE_SDK_BASH
if [ -z "$(ps -ef | grep commafeed.jar | grep -v grep)" ]
2014-09-12 03:05:51 -03:00
then
client_result "Application is already stopped"
else
kill `ps -ef | grep commafeed.jar | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1
fi