concordia-server/scripts/cmake_stubs/stop.sh.in
2015-07-31 14:11:13 +02:00

15 lines
259 B
Bash
Executable File

#!/bin/sh
pidFile="@SCRIPTS_PATH@/concordia-server.PID"
if [ -e $pidFile ]
then
pid=`cat $pidFile`
rm $pidFile
kill $pid
echo "concordia-server stopped"
else
echo "no PID file found at:" $pidFile "- is concordia-server running?" >&2
fi