acme.sh/docker/entry.sh
2022-07-25 16:58:03 +08:00

10 lines
167 B
Bash
Executable File

#!/usr/bin/env sh
if [ "$1" = "daemon" ]; then
trap "echo stop && killall crond && exit 0" SIGTERM SIGINT
crond && sleep infinity &
wait
else
exec -- "$@"
fi