Skip to content

Instantly share code, notes, and snippets.

@eckelon
Created May 24, 2019 10:34
Show Gist options
  • Save eckelon/bde72e31d90bdc76bc6bf71f23bfdc3e to your computer and use it in GitHub Desktop.
Save eckelon/bde72e31d90bdc76bc6bf71f23bfdc3e to your computer and use it in GitHub Desktop.
simple script to debug a seneca microservice running in fuge
#!/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