Created
May 24, 2019 10:34
-
-
Save eckelon/bde72e31d90bdc76bc6bf71f23bfdc3e to your computer and use it in GitHub Desktop.
simple script to debug a seneca microservice running in fuge
This file contains hidden or 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 | |
if [[ $# -eq 0 ]] ; then | |
echo 'you need to specify a service' | |
exit 0 | |
fi | |
pid=`ps aux | grep microservices | grep $1 | awk '{print $2}'` | |
if [ -z "$pid" ] | |
then | |
echo "service not found" | |
exit 0 | |
fi | |
kill -usr1 $pid | |
echo 'OK' | |
# From here, go to chrome://inspect :D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment