This repository has been archived by the owner on Aug 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzurmo-cron.sh
47 lines (37 loc) · 2.85 KB
/
zurmo-cron.sh
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# Complete cron for ZurmoCRM - v2.0.18
#
# <min> <hour> <day-month> <month> <week> $uSER cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO <job> &> /dev/null
# <0-60> <0-23> <0-31> <1-12> <0-6>
#
USER_SYS=root
USER_ZURMO=super
FOLDER=/path/to/zurmo
# Every 1 minute
*/1 * * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO ProcessOutboundEmail &> /dev/null
# Every 2 minutes
*/2 * * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO Export &> /dev/null
# Every 5 minutes
*/5 * * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO EmailArchiving &> /dev/null
*/5 * * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO EmailBounce &> /dev/null
*/5 * * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO Monitor &> /dev/null
# Every 15 minutes
*/15 * * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO ByTimeWorkflowInQueue &> /dev/null
*/15 * * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO WorkflowMessageInQueue &> /dev/null
# Every 30 minutes
*/30 * * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO AddressGeocodeUpdate &> /dev/null
# Every 1 hour
* 0-23/1 * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO AutoresponderQueueMessagesInOutbox &> /dev/null
* 0-23/1 * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO CampaignGenerateDueCampaignItems &> /dev/null
* 0-23/1 * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO CampaignMarkCompleted &> /dev/null
* 0-23/1 * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO CampaignQueueMessagesInOutbox &> /dev/null
# 1x per day
30 4 * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO ClearSentNotificationsEmail &> /dev/null
30 4 * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO TestOutboundEmail &> /dev/null
20 12 * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO JobLogCleanup &> /dev/null
30 4 * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO WorkflowValidityCheck &> /dev/null
30 4 * * * $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO CurrencyRatesUpdate &> /dev/null
# 1x per week
30 3 * * 6 $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO ExportCleanup &> /dev/null
30 3 * * 6 $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO ImportCleanup &> /dev/null
30 3 * * 6 $USER_SYS cd $FOLDER/app/protected/commands && ./zurmoc jobManager $USER_ZURMO CheckZurmoUpdates &> /dev/null