Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(cron): allows for a more systematic way of calling cron using…
… one url one cron url to call. http://YOUR.SITE/cron/run/ Where all the cron jobs will execute at the specified internval when it's time window deadline has been reached. (i.e. 1min, 5min, 15min, ...)
- Loading branch information
1 parent
369e9e2
commit 3c947fc
Showing
3 changed files
with
96 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
Modify the elgg.cron.1min.plist and replace YOUR.DOMAIN.HERE with your domain: | ||
<string>http://YOUR.DOMAIN.HERE/cron/run/</string> | ||
|
||
copy the plist into /Library/LaunchAgents | ||
|
||
From terminal load the plist like so: | ||
launchctl load -w /Library/LaunchAgents/elgg.cron.1min.plist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>Label</key> | ||
<string>elgg.1min</string> | ||
<key>ProgramArguments</key> | ||
<array> | ||
<string>/usr/bin/lwp-request</string> | ||
<string>-m</string> | ||
<string>GET</string> | ||
<string>-d</string> | ||
<string>http://YOUR.DOMAIN.HERE/cron/run/</string> | ||
</array> | ||
<key>RunAtLoad</key> | ||
<true/> | ||
<key>StartInterval</key> | ||
<integer>60</integer> | ||
</dict> | ||
</plist> | ||
|