Add docker console logging
i have the problem that the acme.sh container does not show logs (docker-compose logs acme.sh), to fix this i changed the crond parameters. / # crond --help BusyBox v1.30.1 (2019-06-12 17:51:55 UTC) multi-call binary. Usage: crond -fbS -l N -d N -L LOGFILE -c DIR -f Foreground -b Background (default) -S Log to syslog (default) -l N Set log level. Most verbose 0, default 8 -d N Set log level, log to stderr -L FILE Log to FILE -c DIR Cron dir. Default:/var/spool/cron/crontabs
This commit is contained in:
parent
3d2df3ba93
commit
d4b150ae84
@ -59,7 +59,7 @@ RUN for verb in help \
|
||||
RUN printf "%b" '#!'"/usr/bin/env sh\n \
|
||||
if [ \"\$1\" = \"daemon\" ]; then \n \
|
||||
trap \"echo stop && killall crond && exit 0\" SIGTERM SIGINT \n \
|
||||
crond && while true; do sleep 1; done;\n \
|
||||
crond -l 2 -f && while true; do sleep 1; done;\n \
|
||||
else \n \
|
||||
exec -- \"\$@\"\n \
|
||||
fi" >/entry.sh && chmod +x /entry.sh
|
||||
|
||||
Loading…
Reference in New Issue
Block a user