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

15 lines
291 B
Bash
Executable File

#!/bin/sh
pidFile="/home/rafalj/projects/concordia-server/scripts/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