grafana/scripts/grafana-server/kill-server

12 lines
211 B
Plaintext
Raw Normal View History

#!/bin/bash
. scripts/grafana-server/variables
if [ -f "$PIDFILE" ]; then
echo -e "Found pidfile, killing running grafana-server"
kill -9 `cat $PIDFILE`
rm $PIDFILE
fi
rm -rf scripts/grafana-server/tmp