// Let's see if server should be automatically started
if (MapsServerPreferences.startAutomatically()) {
// execute in a separate thread to not slow down the startup process
- new Thread(() -> {
- try {
- TileserverMapnikInstance.get().start();
- } catch (Throwable t) {
- LOGGER.error("Could not start integrated tile server", t);
- }
- }).start();
+ if (LOGGER.isDebugEnabled())
+ LOGGER.debug("Starting tileserver mapnik automatically");
+ new TileserverMapnikStartJob().schedule();
}
}
*/
public void stop(BundleContext bundleContext) throws Exception {
// Stop the server
+ if (LOGGER.isDebugEnabled())
+ LOGGER.debug("Stopping tileserver mapnik");
TileserverMapnikInstance.get().stop();
Activator.context = null;
}