Skip to content

Instantly share code, notes, and snippets.

@lupomontero
Created September 28, 2012 01:04
Show Gist options
  • Save lupomontero/3797396 to your computer and use it in GitHub Desktop.
Save lupomontero/3797396 to your computer and use it in GitHub Desktop.
Stopping the app (.openshift/action_hooks/stop)
#!/bin/bash
# The logic to stop your application should be put in this script.
kill `ps -ef | grep app.js | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment