mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
some changes for elasticpot
This commit is contained in:
27
installer/upstart/elasticpot.conf
Normal file
27
installer/upstart/elasticpot.conf
Normal file
@ -0,0 +1,27 @@
|
||||
########################################################
|
||||
# T-Pot #
|
||||
# Elasticpot upstart script #
|
||||
# #
|
||||
# v16.03.2 by ms, DTAG, 2016-01-02 #
|
||||
########################################################
|
||||
|
||||
description "Elasticpot"
|
||||
author "ms"
|
||||
start on started docker and filesystem
|
||||
stop on runlevel [!2345]
|
||||
respawn
|
||||
pre-start script
|
||||
# Remove any existing elasticpot containers
|
||||
myCID=$(docker ps -a | grep elasticpot | awk '{ print $1 }')
|
||||
if [ "$myCID" != "" ];
|
||||
then docker rm -v $myCID;
|
||||
fi
|
||||
# Remove any data from previous container
|
||||
end script
|
||||
script
|
||||
/usr/bin/docker run --name elasticpot --rm=true -v /data/elasticpot:/data/elasticpot -p 9200:8080 dtagdevsec/elasticpot:latest1603
|
||||
end script
|
||||
post-start script
|
||||
# Delay next start to avoid rapid respawning
|
||||
sleep $(((RANDOM % 5)+5))
|
||||
end script
|
||||
Reference in New Issue
Block a user