mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-17 05:54:21 +01:00
18 lines
308 B
Bash
Executable File
18 lines
308 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PIDFILE=var/run/cowrie.pid
|
|
|
|
echo
|
|
echo 'WARNING: stop.sh is deprecated and will be removed in the future.'
|
|
echo 'WARNING: you can start cowrie with "bin/cowrie stop"'
|
|
echo
|
|
|
|
cd $(dirname $0)
|
|
|
|
PID=$(cat ${PIDFILE} 2>/dev/null)
|
|
|
|
if [ -n "$PID" ]; then
|
|
echo "Stopping cowrie..."
|
|
kill -TERM $PID
|
|
fi
|