Skip to content

Instantly share code, notes, and snippets.

@xiaom
Created April 10, 2014 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiaom/10414541 to your computer and use it in GitHub Desktop.
Save xiaom/10414541 to your computer and use it in GitHub Desktop.
hive-scripts/stop_hive.sh: stop hive service
#!/bin/sh
# Stop Hive (kill all process owened by user 'hive')
ps aux | awk '{print $1,$2}' | grep hive | awk '{print $2}' | xargs kill >/dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment