cowrie/stop.sh

13 lines
154 B
Bash
Raw Normal View History

2014-05-30 03:15:02 +00:00
#!/bin/sh
2015-05-12 14:57:29 +00:00
PIDFILE=cowrie.pid
2014-05-30 03:15:02 +00:00
cd $(dirname $0)
PID=$(cat $PIDFILE 2>/dev/null)
if [ -n "$PID" ]; then
2016-02-18 04:12:50 +00:00
echo "Stopping cowrie..."
2014-05-30 03:15:02 +00:00
kill -TERM $PID
2014-06-10 16:28:57 +00:00
fi