<div dir="ltr">i found that removing "controller=<a href="http://127.0.0.1:9999">127.0.0.1:9999</a>" from the shutdown command makes it work (i also removed the "cd wildfly home" part earlier but i don't think it matters much. maybe the rc script shouldn't have that by default so it just works as expected.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 21, 2014 at 2:01 PM, Miguel De Anda <span dir="ltr"><<a href="mailto:miguel@thedeanda.com" target="_blank">miguel@thedeanda.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">has anybody used the rc.wildfly script included in wildfly to stop the service? it seems to silently fail. when i ran the command directly [ $/usr/share/wildfly/bin/jboss-cli.sh --connect controller=<a href="http://127.0.0.1:9999" target="_blank">127.0.0.1:9999</a> command=:shutdown ] i see that its getting a connection refused error. it appears that the config file is not setup to allow local connections to control wildfly.<div>

<br></div><div>can the wildfly buildscript be packaged such that it either falls back to a simple `kill $wildflypid` command and/or patch the standalone.xml to allow local connections.</div><div><br></div><div>the local connection method is a bit less secure unless a wildfly user is somehow generated. </div>

<div><br></div><div>either way, its not obvious that `rc.wildfly stop` does not work without further configuration so at the very least it should be noted.</div><div><br></div><div>thanks,</div><div>miguel</div></div>
</blockquote></div><br></div>