Skip to content

Instantly share code, notes, and snippets.

@taveek
Created June 5, 2018 03:00
Show Gist options
  • Save taveek/f95abd07c21803076daed0f530609127 to your computer and use it in GitHub Desktop.
Save taveek/f95abd07c21803076daed0f530609127 to your computer and use it in GitHub Desktop.
JBOSS standalone operation scripts
#!/bin/bash
JBOSS_HOME=/usr/local/share/jboss
$JBOSS_HOME/bin/jboss-cli.sh -c --controller=localhost:9999 --command="cd deployment,cd myapp.war, read-attribute status" --user=app1 --password=password
#!/bin/bash
JBOSS_HOME=/usr/local/share/jboss
$JBOSS_HOME/bin/jboss-cli.sh -c --controller=localhost:9999 --command="read-attribute server-state" --user=app1 --password=password
#!/bin/bash
JBOSS_HOME=/usr/local/share/jboss
$JBOSS_HOME/bin/jboss-cli.sh --connect --controller=0.0.0.0:9999 command=:shutdown --user=app1 --password=password
#!/bin/bash
JBOSS_HOME=/usr/local/share/jboss
$JBOSS_HOME/bin/standalone.sh -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 > logfile < /dev/null 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment