-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathcron_job_setup
More file actions
30 lines (21 loc) · 1.06 KB
/
Copy pathcron_job_setup
File metadata and controls
30 lines (21 loc) · 1.06 KB
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
This file contains the list of cron job files used on the production environment:
cron_forum_cleanup.sh
cron_geonames_update.sh
cron_guests_cleanup.sh
cron_mailbot.sh
cron_update_fulltext_index.sh
And here's the cron file (adapt accordingly):
# Run message delivery (mailbot) every 5 minutes
*/5 * * * * root <rox dir>/setup/cron_mailbot.sh www.bewelcome.org > /dev/null
# Clean anonymous sessions every hour
0 * * * * root <rox dir>/setup/cron_guests_cleanup.sh
# Hosting eagerness slider update
18 * * * * root mysql --database bewelcome -e 'update hosting_eagerness_slider set current=current-step, remaining=remaining-1 where remaining>0\G'
# Deactivate edit for certain forum posts every 30 minutes
0,30 * * * * root <rox dir>/setup/cron_forum_cleanup.sh
# Update Geonames database at 2:05am
5 2 * * * root <rox dir>/setup/cron_geonames_update.sh www.bewelcome.org
# Generate user statistics at 1am (for yesterday)
0 1 * * * root <rox dir>/bin/console statistics:update
# Reindex full text indices every hour
0 * * * * root <rox dir>/setup/cron_update_fulltext_indices.sh