mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 11:51:17 +01:00
f4bc9263d9
- 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
9 lines
244 B
Bash
Executable file
9 lines
244 B
Bash
Executable file
#!/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
|