forked from City-of-Helsinki/drupal-helfi-asuminen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.sh
More file actions
32 lines (28 loc) · 640 Bytes
/
Copy pathbase.sh
File metadata and controls
32 lines (28 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
echo "Starting cron: $(date)"
# You can add any additional cron "daemons" here:
#
# exec "/crons/some-command.sh" &
#
# Example cron (docker/openshift/crons/some-command.sh):
# @code
# #!/bin/bash
# while true
# do
# drush some-command
# sleep 600
# done
# @endcode
# Uncomment this to enable TPR migration cron
exec "/crons/migrate-tpr.sh" &
# Uncomment this to enable Varnish purge cron
exec "/crons/purge-queue.sh" &
# Uncomment this to enable automatic translation updates.
exec "/crons/update-translations.sh" &
while true
do
echo "Running cron: $(date)\n"
drush cron
# Sleep for 10 minutes.
sleep 600
done