serve-geomyidae.sh - postreich - Unnamed repository; edit this file 'description' to name the repository. DIR Log DIR Files DIR Refs DIR README --- serve-geomyidae.sh (371B) --- 1 #!/bin/bash 2 # 3 # Launch a server for testing. 4 # 5 pid=$( pgrep --exact "geomyidae" ) 6 if [ ! -z "$pid" ]; then 7 printf "Found existing server with pid %s\n" $pid 8 sudo kill $pid 9 printf "Killed it\n" 10 fi 11 sudo geomyidae -p 70 -h localhost -b ./geomyidae/ -l ./log.txt 12 if [ $? ]; then 13 printf "Started new server\n" 14 else 15 printf "Could not start new server\n" 16 fi