Files
cowrie/start.sh

29 lines
499 B
Bash
Raw Normal View History

#!/bin/sh
2014-08-11 20:39:26 +03:00
set -e
cd $(dirname $0)
2014-08-11 20:39:26 +03:00
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
2015-05-12 14:57:29 +00:00
echo "Starting cowrie in the background..."
twistd -l log/cowrie.log --pidfile cowrie.pid cowrie