Browse Source
run crond foreground
crond can be run foreground, use `-f` param.
pull/3915/head
Sing Yu Chan
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
Dockerfile
|
|
@ -64,7 +64,7 @@ RUN for verb in help \ |
|
|
RUN printf "%b" '#!'"/usr/bin/env sh\n \ |
|
|
RUN printf "%b" '#!'"/usr/bin/env sh\n \ |
|
|
if [ \"\$1\" = \"daemon\" ]; then \n \ |
|
|
if [ \"\$1\" = \"daemon\" ]; then \n \ |
|
|
trap \"echo stop && killall crond && exit 0\" SIGTERM SIGINT \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 \ |
|
|
else \n \ |
|
|
exec -- \"\$@\"\n \ |
|
|
exec -- \"\$@\"\n \ |
|
|
fi" >/entry.sh && chmod +x /entry.sh |
|
|
fi" >/entry.sh && chmod +x /entry.sh |
|
|
|