From a13edf6c08d5b5a6b7b5d4e4908d6c9a7a220e8a Mon Sep 17 00:00:00 2001 From: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> Date: Thu, 19 Jan 2023 02:23:32 +0530 Subject: [PATCH] =?UTF-8?q?chore:=20remove=20unused=20`run.sh`=20?= =?UTF-8?q?=F0=9F=A7=BD=20(#719)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: remove unused `run.sh` Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * docs: update Badge Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * docs: use badge from `shields.io` to match previous version Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> --- README.md | 2 +- run.sh | 37 ------------------------------------- 2 files changed, 1 insertion(+), 38 deletions(-) delete mode 100755 run.sh diff --git a/README.md b/README.md index d4cbc9b..a410355 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # TileServer GL -[![Build Status](https://travis-ci.org/maptiler/tileserver-gl.svg?branch=master)](https://travis-ci.org/maptiler/tileserver-gl) +[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/maptiler/tileserver-gl/pipeline.yml)](https://github.com/maptiler/tileserver-gl/actions/workflows/pipeline.yml) [![Docker Hub](https://img.shields.io/badge/docker-hub-blue.svg)](https://hub.docker.com/r/maptiler/tileserver-gl/) Vector and raster maps with GL styles. Server-side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc. diff --git a/run.sh b/run.sh deleted file mode 100755 index 5f9453d..0000000 --- a/run.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -_term() { - echo "Caught signal, stopping gracefully" - kill -TERM "$child" 2>/dev/null -} - -trap _term SIGTERM -trap _term SIGINT - -xvfbMaxStartWaitTime=60 -displayNumber=99 -screenNumber=0 - -# Delete files if they were not cleaned by last run -rm -rf /tmp/.X11-unix /tmp/.X${displayNumber}-lock ~/xvfb.pid - -echo "Starting Xvfb on display ${displayNumber}" -start-stop-daemon --start --pidfile ~/xvfb.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :${displayNumber} -screen ${screenNumber} 1024x768x24 -ac +extension GLX +render -noreset - -# Wait to be able to connect to the port. This will exit if it cannot in 1 minute. -timeout ${xvfbMaxStartWaitTime} bash -c "while ! xdpyinfo -display :${displayNumber} >/dev/null; do sleep 0.5; done" -if [ $? -ne 0 ]; then - echo "Could not connect to display ${displayNumber} in ${xvfbMaxStartWaitTime} seconds time." - exit 1 -fi - -export DISPLAY=:${displayNumber}.${screenNumber} - -echo -cd /data -node /usr/src/app/ "$@" & -child=$! -wait "$child" - -start-stop-daemon --stop --retry 5 --pidfile ~/xvfb.pid # stop xvfb when exiting -rm ~/xvfb.pid