From a6ee37b4b92478f4eddd4732ff4146acd47bc8d1 Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Mon, 14 Nov 2016 11:14:11 +0400 Subject: [PATCH] start.sh/stop.sh deprecated. use bin/cowrie start|stop --- start.sh | 36 ------------------------------------ stop.sh | 12 ------------ 2 files changed, 48 deletions(-) delete mode 100755 start.sh delete mode 100755 stop.sh diff --git a/start.sh b/start.sh deleted file mode 100755 index 1754296..0000000 --- a/start.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -AUTHBIND_ENABLED=no -COWRIEDIR=$(dirname $0) -PIDFILE="var/run/cowrie.pid" -export PYTHONPATH=${PYTHONPATH}:${COWRIEDIR} - -set -e -cd ${COWRIEDIR} - -if [ "$1" != "" ] -then - VENV="$1" - - if [ ! -d "$VENV" ] - then - echo "The specified virtualenv \"$VENV\" was not found!" - exit 1 - fi - - if [ ! -f "$VENV/bin/activate" ] - then - echo "The specified virtualenv \"$VENV\" was not found!" - exit 2 - fi - - echo "Activating virtualenv \"$VENV\"" - . $VENV/bin/activate -fi - -echo "Starting cowrie with extra arguments [$XARGS] ..." -if [ $AUTHBIND_ENABLED = "no" ] -then - twistd $XARGS -l log/cowrie.log --umask 0077 --pidfile ${PIDFILE} cowrie -else - authbind --deep twistd $XARGS -l log/cowrie.log --umask 0077 --pidfile cowrie.pid cowrie -fi diff --git a/stop.sh b/stop.sh deleted file mode 100755 index 64b3ac6..0000000 --- a/stop.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -PIDFILE=var/run/cowrie.pid - -cd $(dirname $0) - -PID=$(cat ${PIDFILE} 2>/dev/null) - -if [ -n "$PID" ]; then - echo "Stopping cowrie..." - kill -TERM $PID -fi