]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
Changing cron jobs for marketing-publicis-ai.pixelpark.net and test-marketing-publici...
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 7 Apr 2017 14:41:54 +0000 (16:41 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 7 Apr 2017 14:41:54 +0000 (16:41 +0200)
customer/pixelpark/marketing-publicis-ai.pixelpark.net.yaml
customer/pixelpark/test-marketing-publicis-ai.pixelpark.net.yaml

index bec528f894613f6a7bf93fa3a6ae9a53f1f25613..2d43dae33476f83e206d8c5eb2632aa112efd031 100644 (file)
@@ -138,41 +138,46 @@ infra::profile::apache::pp_vhosts:
 infra::profile::cron::cronjobs:
   mautic_update:
     user: apache
-    command: 'php /var/www/marketing/app/console mautic:segments:update'
+    command: 'echo >> $LOG; date >> $LOG; php /var/www/marketing/app/console mautic:segments:update >>$LOG 2>&1'
     minute: '0,15,30,45'
     hour: '*'
     environment:
       - 'MAUTIC_ENV=live'
+      - 'LOG=/var/www/log/mautic/pepperlfuchs/update.log'
     description: mautic update
   mautic_rebuild:
     user: apache
-    command: 'php /var/www/marketing/app/console mautic:campaigns:rebuild'
+    command: 'echo >> $LOG; date >> $LOG; php /var/www/marketing/app/console mautic:campaigns:rebuild >>$LOG 2>&1'
     minute: '5,20,35,50'
     hour: '*'
     environment:
       - 'MAUTIC_ENV=live'
+      - 'LOG=/var/www/log/mautic/pepperlfuchs/rebuild.log'
     description: mautic rebuild
   mautic_trigger:
     user: apache
-    command: 'php /var/www/marketing/app/console mautic:campaigns:trigger'
+    command: 'echo >> $LOG; date >> $LOG; php /var/www/marketing/app/console mautic:campaigns:trigger >>$LOG 2>&1'
     minute: '10,25,40,55'
     hour: '*'
     environment:
       - 'MAUTIC_ENV=live'
+      - 'LOG=/var/www/log/mautic/pepperlfuchs/trigger.log'
     description: mautic trigger
   mautic_emails:
     user: apache
-    command: 'php /var/www/marketing/app/console mautic:emails:send'
+    command: 'echo >> $LOG; date >> $LOG; php /var/www/marketing/app/console mautic:emails:send >>$LOG 2>&1'
     minute: '*/5'
     hour: '*'
     environment:
       - 'MAUTIC_ENV=live'
+      - 'LOG=/var/www/log/mautic/pepperlfuchs/emails.log'
     description: mautic emails
   mautic_messages:
     user: apache
-    command: 'php /var/www/marketing/app/console mautic:messages:send'
+    command: 'echo >> $LOG; date >> $LOG; php /var/www/marketing/app/console mautic:messages:send >>$LOG 2>&1'
     minute: '*/5'
     hour: '*'
     environment:
       - 'MAUTIC_ENV=live'
+      - 'LOG=/var/www/log/mautic/pepperlfuchs/messages.log'
     description: mautic messages
index 07e57227999780b7a41296912e96270e31099753..79380ae07cc44329825d173a93dd20729b93a083 100644 (file)
@@ -120,41 +120,46 @@ infra::profile::apache::pp_vhosts:
 infra::profile::cron::cronjobs:
   mautic_update:
     user: apache
-    command: 'php /var/www/marketing/app/console mautic:segments:update'
+    command: 'echo >> $LOG; date >> $LOG; php /var/www/marketing/app/console mautic:segments:update >>$LOG 2>&1'
     minute: '0,15,30,45'
     hour: '*'
     environment:
       - 'MAUTIC_ENV=test'
+      - 'LOG=/var/www/log/mautic/pepperlfuchs/update.log'
     description: mautic update
   mautic_rebuild:
     user: apache
-    command: 'php /var/www/marketing/app/console mautic:campaigns:rebuild'
+    command: 'echo >> $LOG; date >> $LOG; php /var/www/marketing/app/console mautic:campaigns:rebuild >>$LOG 2>&1'
     minute: '5,20,35,50'
     hour: '*'
     environment:
       - 'MAUTIC_ENV=test'
+      - 'LOG=/var/www/log/mautic/pepperlfuchs/rebuild.log'
     description: mautic rebuild
   mautic_trigger:
     user: apache
-    command: 'php /var/www/marketing/app/console mautic:campaigns:trigger'
+    command: 'echo >> $LOG; date >> $LOG; php /var/www/marketing/app/console mautic:campaigns:trigger >>$LOG 2>&1'
     minute: '10,25,40,55'
     hour: '*'
     description: mautic trigger
     environment:
       - 'MAUTIC_ENV=test'
+      - 'LOG=/var/www/log/mautic/pepperlfuchs/trigger.log'
   mautic_emails:
     user: apache
-    command: 'php /var/www/marketing/app/console mautic:emails:send'
+    command: 'echo >> $LOG; date >> $LOG; php /var/www/marketing/app/console mautic:emails:send >>$LOG 2>&1'
     minute: '*/5'
     hour: '*'
     environment:
       - 'MAUTIC_ENV=test'
+      - 'LOG=/var/www/log/mautic/pepperlfuchs/emails.log'
     description: mautic emails
   mautic_messages:
     user: apache
-    command: 'php /var/www/marketing/app/console mautic:messages:send'
+    command: 'echo >> $LOG; date >> $LOG; php /var/www/marketing/app/console mautic:messages:send >>$LOG 2>&1'
     minute: '*/5'
     hour: '*'
     environment:
       - 'MAUTIC_ENV=test'
-    description: mautic messages
\ No newline at end of file
+      - 'LOG=/var/www/log/mautic/pepperlfuchs/messages.log'
+    description: mautic messages