log json output to host

This commit is contained in:
Marco Ochse 2015-12-11 16:26:41 +01:00
parent 6ec9f80343
commit bcba6b7390

View file

@ -2,12 +2,12 @@
# T-Pot #
# Suricata upstart script #
# #
# v0.04 by mo, DTAG, 2015-12-08 #
# v16.03.1 by mo, DTAG, 2015-12-11 #
########################################################
description "Suricata"
author "mo"
start on (started docker and filesystem)
start on started docker and filesystem
stop on runlevel [!2345]
respawn
pre-start script
@ -24,7 +24,7 @@ end script
script
# Delayed start to avoid rapid respawning
sleep $(((RANDOM % 5)+5))
/usr/bin/docker run --name suricata --cap-add=NET_ADMIN --net=host --rm=true -v /data:/data dtagdevsec/suricata:latest1603
/usr/bin/docker run --name suricata --cap-add=NET_ADMIN --net=host --rm=true -v /data/suricata:/data/suricata dtagdevsec/suricata:latest1603
end script
post-start script
sleep $(((RANDOM % 5)+5))