cowrie/stop.sh

13 lines
154 B
Bash
Executable File

#!/bin/sh
PIDFILE=cowrie.pid
cd $(dirname $0)
PID=$(cat $PIDFILE 2>/dev/null)
if [ -n "$PID" ]; then
echo "Stopping cowrie..."
kill -TERM $PID
fi