ipabusedb-docker-reporter: log startup and next report time
This commit is contained in:
1 parent
ea0c484370
commit
e69352606b
1 file changed
+2
@@ -22,6 +22,8 @@ for var in DOCKER_CONTAINER_NAME IPABUSEDB_API_KEY; do
|
||||
fi
|
||||
done
|
||||
|
||||
echo "ipabusedb-docker-reporter: starting up, next report in ${INTERVAL}s"
|
||||
|
||||
# Sleep in the background so that SIGTERM from "sv stop" (which runsvinit
|
||||
# sends on "docker stop") interrupts the wait instead of orphaning sleep.
|
||||
trap 'kill "$sleeper" 2>/dev/null; exit 0' TERM INT
|
||||
|
||||
Reference in new issue
Block a user