Loredra L
Loredra L

Reputation: 1553

Jsreport: Correct way to stop jsreport server

I have always stop jsreport server by simple close the commandline. Sometimes it causes new start to fail due to port still in use. What is the correct/safe way to turn off jsreport server?

Upvotes: 1

Views: 880

Answers (1)

Jan Blaha
Jan Blaha

Reputation: 3095

There is no general shutdown functionality in jsreport currently. However I guess you are mainly interested in closing the web server. This can be done in the following way:

jsreport.express.server.close()

Upvotes: 2

Related Questions