3

I want to run geoserver as a background process:

sudo -b sh /usr/share/geoserver-2.8.3/bin/startup.sh

However, whenever I interact with the geoserver on the web surface, the process is suddenly re-appearing in the terminal an blocking further interaction. How do I prevent that?

2
  • Have you tried running it through screen
    – nmtoken
    Commented Apr 16, 2016 at 7:56
  • try ./startup.sh & Commented Dec 11, 2019 at 11:43

2 Answers 2

4

If you are running GeoServer from the command line then you are only testing it and so should leave it running in a spare console window until done.

In a production environment you need to use the .war file in a servlet container such as tomcat or jetty which will be run using service (or systemd or whatever your system uses) so that you don't need to worry about starting them.

2
  • Actually, I want to use geoserver standalone in production as well. Why is that wrong?
    – Lokomotywa
    Commented Apr 15, 2016 at 15:20
  • 2
    Because the bundled jetty is very old and it is unoptimized. Also you will need to log on and restart GeoServer each time. Finally you should not be running a service as root.
    – Ian Turton
    Commented Apr 15, 2016 at 16:28
2

You can run Geoserver as a service in the background without any issues. There are init scripts for each linux distros to run it as a service.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.