0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-15 19:05:09 +01:00

Launch crond in background from entrypoint.sh

This is so that the crontab is executed on a regular schedule in the background
without a secondary container to execute it.

Relates to #134
This commit is contained in:
Robert Dailey 2018-11-13 16:22:10 -06:00
parent 6c155c7ea2
commit fa7ba2dce1
26 changed files with 39 additions and 13 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -eu set -eu
exec busybox crond -f -l 0 -L /dev/stdout exec busybox crond -b -l 0 -L /dev/stdout

View file

@ -129,4 +129,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi fi
fi fi
/cron.sh
exec "$@" exec "$@"