2

I am unable to stop the wildfly 10 standalone server in Linux Env. And using the following commands:

start: ./standalone.sh (working fine)
stop: ./jboss-cli.sh -c --command=:shutdown  (Unable to stop the server)

Note: Stop command is working fine in windows env by executing the command:

jboss-cli.bat -c --command=:shutdown(timeout=60)
Kiran Nunna
  • 158
  • 3
  • 8
  • 20
  • 1
    Have you tried adding the `timeout` parameter which you know works on windows? – MTCoster Apr 14 '17 at 11:32
  • Yes, but it shows an error as "unexpected character '(' " after adding timeout value. I tried to escape with "<" symbol but still issue exists. – Kiran Nunna Apr 14 '17 at 12:43
  • $ ./jboss-cli.sh -c --command=:shutdown<(timeout=10) 'shutdown/dev/fd/63' is not a valid operation name. – Kiran Nunna Apr 14 '17 at 12:57

2 Answers2

2

How about using kill linux command :

On Cent OS this works :

ps aux | grep wildfly | grep -v grep| awk '{print $2} | xargs kill 
jithin iyyani
  • 751
  • 1
  • 7
  • 19
1

what error/s you are getting while shutting down server ? Try with :

jboss-cli.sh -c --controller=127.0.0.1:9999 --command=":shutdown()" --user=$USER --password=$PASSWORD

Varsha
  • 1,150
  • 9
  • 12