Files
cowrie/start.sh
Michel Oosterhof 9e348e4c8d rename ssh_addr -> listen_addr
and ssh_port -> listen_port
old values still accepted for backwards compatibility
2015-02-19 06:51:11 +00:00

29 lines
502 B
Bash
Executable File

#!/bin/sh
set -e
cd $(dirname $0)
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 kippo in the background..."
twistd -y kippo.tac -l log/kippo.log --pidfile kippo.pid