Last active
May 26, 2020 19:52
-
-
Save ston1x/06d5b469bd1a3ef87d3a92e84e35ab1d to your computer and use it in GitHub Desktop.
Kill unicorn process
This file contains 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 | |
function kill_unicorn() { | |
kill $(ps aux | grep "unicorn master" | grep -v "grep" | awk '{print $2}' | tail -1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment