run crond foreground

crond can be run foreground, use `-f` param.
This commit is contained in:
Sing Yu Chan 2022-01-29 22:14:12 +08:00 committed by GitHub
parent 4c32bc8e22
commit 3632761074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,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 \
exec crond -f\n \
else \n \
exec -- \"\$@\"\n \
fi" >/entry.sh && chmod +x /entry.sh