1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-28 03:28:13 +00:00

Add the ability to run crond inside the Docker container

- Add the crond init script for s6
- Add the RUN_CROND configuration variable to setup crond
- Crond will not be run by default (hence the `down` file in the service directory)
- `start.sh` check if RUN_CROND = "true" || "1" and remove this file to tell s6 to run the initscript
- Resolves #2597
This commit is contained in:
Jean-Philippe Roemer
2016-02-12 02:38:18 +00:00
parent 600d8edaca
commit f4bc9263d9
3 changed files with 18 additions and 0 deletions

0
docker/s6/crond/down Normal file
View File

9
docker/s6/crond/run Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
# Crontabs are located by default in /var/spool/cron/crontabs/
# The default configuration is also calling all the scripts in /etc/periodic/${period}
if test -f ./setup; then
source ./setup
fi
exec gosu root /usr/sbin/crond -fS