add pidfile back (#1460)

This commit is contained in:
Michel Oosterhof
2020-11-26 14:51:08 +08:00
committed by GitHub
parent 1179565754
commit f64285beb7

View File

@ -193,6 +193,13 @@ export PYTHONPATH=${PYTHONPATH}:${COWRIEDIR}/src
set -e
# Don't store pidfile on Docker persistent volume
if [ "${COWRIE_STDOUT}" = "yes" ]; then
PIDFILE=""
else
PIDFILE=var/run/cowrie.pid
fi
if [ ! -f ${COWRIEDIR}/var/log/cowrie/cowrie.log ]
then
first_time_use