From 58b76780e27ffb0222b8eeb9a0999241b59f793c Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Mon, 2 Nov 2015 12:10:15 +0100 Subject: [PATCH] fix race condition after reboot volumes are not properly shared, although all services are started properly. --- installer/upstart/honeytrap.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/installer/upstart/honeytrap.conf b/installer/upstart/honeytrap.conf index 10bd7478..eb290c7b 100644 --- a/installer/upstart/honeytrap.conf +++ b/installer/upstart/honeytrap.conf @@ -2,12 +2,12 @@ # T-Pot Community Edition # # Honeytrap upstart script # # # -# v0.51 by mo, DTAG, 2015-08-07 # +# v0.53 by mo, DTAG, 2015-11-02 # ######################################################## description "Honeytrap" author "mo" -start on started docker and filesystem +start on (started docker and filesystem) stop on runlevel [!2345] respawn pre-start script @@ -23,6 +23,9 @@ script sleep $(((RANDOM % 5)+5)) /usr/bin/docker run --name honeytrap --cap-add=NET_ADMIN --net=host --rm=true -v /data/honeytrap dtagdevsec/honeytrap end script +post-start script + sleep $(((RANDOM % 5)+5)) +end script post-stop script /sbin/iptables -w -D INPUT -p tcp --syn -m state --state NEW -m multiport ! --dports 21,22,42,80,135,443,445,1433,3306,5060,5061,64295,64296 -j NFQUEUE end script