From f4bc9263d97d55e811aeff383545fea7476105ba Mon Sep 17 00:00:00 2001 From: Jean-Philippe Roemer Date: Fri, 12 Feb 2016 02:38:18 +0000 Subject: 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 --- docker/s6/crond/run | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 docker/s6/crond/run (limited to 'docker/s6/crond/run') diff --git a/docker/s6/crond/run b/docker/s6/crond/run new file mode 100755 index 00000000..9aa9fb9f --- /dev/null +++ b/docker/s6/crond/run @@ -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 -- cgit v1.2.3