[Slackbuilds-users] wildfly start/stop script

Giorgio Peron giorgio.peron at gmail.com
Sat May 10 13:58:31 UTC 2014


On 22/03/2014 02:08, Willy Sudiarto Raharjo wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>> i found that removing "controller=127.0.0.1:9999" 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.
>>> 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=127.0.0.1:9999command=: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.
>>>
>>> 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.
>>>
>>> the local connection method is a bit less secure unless a wildfly user is
>>> somehow generated.
>>>
>>> either way, its not obvious that `rc.wildfly stop` does not work without
>>> further configuration so at the very least it should be noted.
> Just to make sure the maintainer gets this, i'm CCing to him as well
>
>
> - --
> Willy Sudiarto Raharjo
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlMs4noACgkQiHuDdNczM4H8tQCfZEA9gQ9ZnTZVcY1jtsYkCpk8
> Z78AoI4f1mo1l+THf6zmmXs9dKf6Ts2j
> =bKrF
> -----END PGP SIGNATURE-----
>
>
there is a typo in the port number

-/usr/share/wildfly/bin/jboss-cli.sh --connect controller=127.0.0.1:9999 command=:shutdown

+/usr/share/wildfly/bin/jboss-cli.sh --connect controller=127.0.0.1:9990 command=:shutdown

i'll fix the rc.wildfly script thanks


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20140510/d78a18d3/attachment.html>


More information about the SlackBuilds-users mailing list