Skip to content

Instantly share code, notes, and snippets.

@steadystatic
Last active January 27, 2016 22:04
Show Gist options
  • Save steadystatic/1f0fb1b3441a9a8a5015 to your computer and use it in GitHub Desktop.
Save steadystatic/1f0fb1b3441a9a8a5015 to your computer and use it in GitHub Desktop.
Start JBoss or if it's already running tail the log
ps -ef | grep "standalone" | grep -v -e 'grep\|Java'; if [[ $? -eq 1 ]]; then; sh /usr/local/opt/jboss-eap-6.4/bin/standalone.sh; else; tail -f /usr/local/opt/jboss-eap-6.4/standalone/log/server.log; fi;
@steadystatic
Copy link
Author

Quick one-liner, use with iTerm profile for my window arrangment to keep JBoss on my left screen...this either tails it or runs it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment