Category:Technology -> Adventures with the naked Mac Mini Server -> Set up and configure cron
Set up and configure cron
Follow these steps to setup and configure cron:
- In your text editor of choice, create the file /Library/LaunchDaemons/drupal-cron-call.plist and add the following content:
<?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>com.{domain-name}.drupal-cron</string>
<key>UserName</key>
<string>nobody</string>
<key>GroupName</key>
<string>_www</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/curl</string>
<string>-s</string>
<string>http://localhost/{drupal-subdirectory/}cron.php</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartCalendarInterval</key>
<dict>
<key>Minute</key>
<integer>09</integer>
</dict>
</dict>
</plist>
