From abd811cb249d17c10990b850de0b7dad64933266 Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Fri, 30 May 2014 04:15:02 +0100 Subject: [PATCH] Added 'stop' file --- stop.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 stop.sh diff --git a/stop.sh b/stop.sh new file mode 100644 index 00000000..e952f093 --- /dev/null +++ b/stop.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +PIDFILE=kippo.pid + +cd $(dirname $0) + +PID=$(cat $PIDFILE 2>/dev/null) + +if [ -n "$PID" ]; then + echo -e "[\e[01;32mi\e[00m] Stopping kippo...\n" + kill -TERM $PID +fi \ No newline at end of file