Skip to content

Instantly share code, notes, and snippets.

@jonmcewen
Created August 25, 2015 07:23
Show Gist options
  • Save jonmcewen/9ee8b9bd42a71b958e89 to your computer and use it in GitHub Desktop.
Save jonmcewen/9ee8b9bd42a71b958e89 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd "`dirname "$0"`"
jmxOpts="-Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.password.file=config/jmxremote.password"
nohup java $jmxOpts -Djava.security.egd=file:/dev/./urandom -jar my-app-1.0.0.jar 1>/dev/null 2>stderr.log &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment