Last active
January 27, 2016 22:04
-
-
Save steadystatic/1f0fb1b3441a9a8a5015 to your computer and use it in GitHub Desktop.
Start JBoss or if it's already running tail the log
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
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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.