How to kill localhost:8080 running Stirling-PDF from browser

Got Stirling-PDF compiled for local use. It is started using java in a terminal. It runs as web app in localhost:8080 after you open a browser window pointed to that addy.

After usage of Stirling-PDF, killing the web page tab does not kill the localhost:8080. Killing the process in the terminal also does not kill the localhost:8080. It remains running.

Only way to kill service, that I have found, is to find the pid of localhost:8080 and then kill that pid in another terminal window.

Is there a way to kill localhost:8080 from within the browser (vivaldi) during or before you close its window tab?

thanks, tom kosvic

I am tryig to understand this.

Am I right that behind localhost:8080 there is a web server running?

And that you use a HTTP/HTTPS browser (Vivaldi) to connect as client to that server?

And then you want to kill the sever from the client?

Let us hope that that will never be possible. Do you really think that when killing e.g. this openSUSE forums web-server from your, mine and everybody eleses browser, it would survive longer then a minute?

Could you show every command that you are running together with its output?
As mentioned, terminating the client doesn’t terminate the server.

Am I right that behind localhost:8080 there is a web server running?
And that you use a HTTP/HTTPS browser (Vivaldi) to connect as client to that server?pe or paste code here

yes, terminal starts server and says to open localhost:8080 tab in browser to run Stirling-PDF in that window tab.

I understand, from your comment, why shutting down server from client should not be allowed. Didn’t think to look at this on a larger scale.

Will continue to kill Stirling-PDF server from killing pid.
thanks for straightening me out. tom kosvic

Isn’t is described in the project documentation how to stop the service?

sudo systemctl stop stirlingpdf.service

I did not use steps from below:
“### Optional: Run Stirling-PDF as a service (requires root)”

I compiled source (not using the docker version) and am running Stirling-PDF as user. Did not create/start stirlingpdf.service.
I will kill Stirling-PDF server from pid.

thanks for looking into it. tom kosvic

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.