[packages/eventum] Use bin/console.php in cron scripts
glen
glen at pld-linux.org
Mon Mar 29 10:31:18 CEST 2021
commit 2354f7f7171ff9677a62ac5bdc0cf80aa4f0e61d
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Mon Mar 29 01:15:12 2021 +0300
Use bin/console.php in cron scripts
The standalone scripts are deprecated
eventum-mail-download.cron | 2 +-
eventum-mail-queue.cron | 2 +-
eventum-monitor.cron | 2 +-
eventum-reminder.cron | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/eventum-mail-download.cron b/eventum-mail-download.cron
index fcf2e7e..8985383 100644
--- a/eventum-mail-download.cron
+++ b/eventum-mail-download.cron
@@ -11,4 +11,4 @@ MAILTO=root
#
# Administration >>> Manage Email Accounts
-#0 * * * * http exec /usr/share/eventum/bin/download_emails.php username_here mail.domain.com INBOX
+#0 * * * * http exec /usr/share/eventum/bin/console.php eventum:mail:download username_here mail.domain.com INBOX
diff --git a/eventum-mail-queue.cron b/eventum-mail-queue.cron
index b164f8f..dfc7976 100644
--- a/eventum-mail-queue.cron
+++ b/eventum-mail-queue.cron
@@ -2,7 +2,7 @@
# bounce messages back to root
MAILTO=root
-* * * * * http exec /usr/share/eventum/bin/process_mail_queue.php
+* * * * * http exec /usr/share/eventum/bin/console.php eventum:mail-queue:process
# The above line will run the mail queue script every minute. To setup
# the SMTP server that Eventum should use to send these queued emails,
diff --git a/eventum-monitor.cron b/eventum-monitor.cron
index e84da5f..0336e40 100644
--- a/eventum-monitor.cron
+++ b/eventum-monitor.cron
@@ -2,4 +2,4 @@
# report status to root
MAILTO=root
-*/10 * * * * http exec /usr/share/eventum/bin/monitor.php -q
+*/10 * * * * http exec /usr/share/eventum/bin/console.php eventum:system:monitor -q
diff --git a/eventum-reminder.cron b/eventum-reminder.cron
index c0ade5a..ac0882b 100644
--- a/eventum-reminder.cron
+++ b/eventum-reminder.cron
@@ -2,7 +2,7 @@
# bounce messages back to root
MAILTO=root
-*/10 * * * * http exec /usr/share/eventum/bin/check_reminders.php
+*/10 * * * * http exec /usr/share/eventum/bin/console.php eventum:reminder:check
# It is recommended that you run the reminder cron job every 10 minutes,
# so it won't flood you with alerts too often, but it would still be
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/eventum.git/commitdiff/57d8a75fb77359dbd05a74edf4929814e218f1bb
More information about the pld-cvs-commit
mailing list