mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Rotate logs when they reach 10MB and keep only 1 archive
This commit is contained in:
parent
3dfbb9134e
commit
7c98aa9f61
@ -160,8 +160,8 @@ ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
|
|||||||
# Wait indefinitely for cont-init.d to finish before starting services
|
# Wait indefinitely for cont-init.d to finish before starting services
|
||||||
ENV S6_CMD_WAIT_FOR_SERVICES=1
|
ENV S6_CMD_WAIT_FOR_SERVICES=1
|
||||||
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
|
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
|
||||||
# Configure logging to log to stdout and prepend timestamps
|
# Configure logging to prepend timestamps, log to stdout, keep 1 archive and rotate on 10MB
|
||||||
ENV S6_LOGGING_SCRIPT="T 1 n20 s1000000 T"
|
ENV S6_LOGGING_SCRIPT="T 1 n1 s10000000 T"
|
||||||
# TODO: remove after a new version of s6-overlay is released. See:
|
# TODO: remove after a new version of s6-overlay is released. See:
|
||||||
# https://github.com/just-containers/s6-overlay/issues/460#issuecomment-1327127006
|
# https://github.com/just-containers/s6-overlay/issues/460#issuecomment-1327127006
|
||||||
ENV S6_SERVICES_READYTIME=50
|
ENV S6_SERVICES_READYTIME=50
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user