SurMan
SurMan

Reputation: 281

How to Stop WSO2 ESB 4.0.3

I have started the WSO2 ESB server with ./wso2server.sh , but there is no script to stop the server ?

Can anybody tell the command to stop the server ?

Thanks Suresh

Upvotes: 1

Views: 6597

Answers (6)

Loganathan
Loganathan

Reputation: 1787

On Management-Console, we can shutdown or Restart

On management console

On management console we can shutdown / Restart

Upvotes: 1

Elilmatha Sivanesan
Elilmatha Sivanesan

Reputation: 91

To stop the server,

  • If you have started the server using ./wso2server.sh then you can stop the server by pressing Ctrl+C in the command window
  • If you have started using ./wso2server.sh --start then stop using ./wso2server.sh --stop
  • If you have started using ./deamon.sh start use ./deamon.sh stop
  • clicking the Shutdown/Restart link in the navigation pane in the Management Console works well for all..

Upvotes: 1

Phillip Koerner
Phillip Koerner

Reputation: 31

This is an old thread... but I since I arrived here with the same question, I may as well post the answer I found for future users.

Another way to shut down the wso2 server is through the online admin console. Once the server is running, simply navigate in your browser to

https://localhost:9443/carbon 

Log into the server's admin page using the default username and password, "admin" for both. Then scroll to the bottom of the page and select "shutdown/restart" and select "graceful shutdown" from the menu.

Upvotes: 0

Kasun Gajasinghe
Kasun Gajasinghe

Reputation: 2776

Generally, pressing CTRL + C in the terminal you started the server would do.

If it's not possible for you, then do the following.

Enter the command ps ax | grep wso2esb

This will list the set of processes started that has the text wso2esb. Unless you opened several esb instances, there will be one process that would like the following [1]. There, the first number refers to the process id.

So, enter following command to gracefully shutdown the esb.

kill <process-id>

You may force the shutdown by sending signal kill (-9) like follows if you need to.

kill -9 <process-id>

As you may have noticed, the kill command is a native program that comes with most linux distros, not a wso2 provided one.

Upvotes: 1

Thomas Ehardt
Thomas Ehardt

Reputation: 155

./wso2server.sh --stop or ./daemon.sh stop

Upvotes: 3

SureshAtt
SureshAtt

Reputation: 1951

If you have started the server using ./wso2server.sh then you can stop the server by pressing Ctrl and c keys together on the console, it will simply kill the server.

If you have started using ./wso2server.sh --start or ./deamon.sh start then you can kill the server using the commands ./wso2server.sh --stop or ./deamon.sh stop.

Upvotes: 5

Related Questions