Add script to launch test server - postreich - Unnamed repository; edit this file 'description' to name the repository. DIR Log DIR Files DIR Refs DIR README --- DIR commit f2520087c461049f493a9839cf5def6d2e23281a DIR parent bec6e0356bbd4f2a19030f34ab43975b6bc99134 HTML Author: Scarlett McAllister <no+reply@roygbyte.com> Date: Wed, 24 Jan 2024 19:40:40 -0400 Add script to launch test server Diffstat: A start-server.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+), 0 deletions(-) --- DIR diff --git a/start-server.sh b/start-server.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Launch a server for testing. +# +pid=$( pgrep geomyidae ) +if [ $? -eq 0 ]; then + printf "Found existing server with pi %s\n" $pid + sudo kill $pid + printf "Killed it\n" +fi +sudo geomyidae -p 70 -h localhost -b ./geomyidae/ -l log.txt +if [ $? ]; then + printf "Started new server\n" +else + printf "Could not start new server\n" +fi