aboutsummaryrefslogtreecommitdiff
path: root/crontab.example
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-01 16:16:41 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-01 16:16:41 +0000
commitba5dce43c9cd44ded0657f89b05d8dba29cf6a4b (patch)
treed5b584fd979fb2b02b4d366e2d6a2bf970bc4181 /crontab.example
parent420200475b9893755adec774d04024d01a84afac (diff)
downloadelgg-ba5dce43c9cd44ded0657f89b05d8dba29cf6a4b.tar.gz
elgg-ba5dce43c9cd44ded0657f89b05d8dba29cf6a4b.tar.bz2
Improved cron support
git-svn-id: https://code.elgg.org/elgg/trunk@2160 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'crontab.example')
-rw-r--r--crontab.example22
1 files changed, 22 insertions, 0 deletions
diff --git a/crontab.example b/crontab.example
new file mode 100644
index 000000000..cb2223d3b
--- /dev/null
+++ b/crontab.example
@@ -0,0 +1,22 @@
+# Crontab example.
+#
+# This file is an example of triggering Elgg cron events. Modify and register events
+# as appropriate.
+#
+# See crontab (5) for more information.
+#
+# @author Marcus Povey
+
+# Location of GET
+GET='/usr/bin/GET'
+
+# Location of your site
+ELGG='http://www.example.com/'
+
+# The crontab
+@reboot $GET ${ELGG}pg/cron/reboot/
+@hourly $GET ${ELGG}pg/cron/hourly/
+@daily $GET ${ELGG}pg/cron/daily/
+@weekly $GET ${ELGG}pg/cron/weekly/
+@monthly $GET ${ELGG}pg/cron/monthly/
+@yearly $GET ${ELGG}pg/cron/yearly/