-
Notifications
You must be signed in to change notification settings - Fork 158
Run as Cron job
Steven Davies edited this page Sep 28, 2017
·
3 revisions
$globalDaemon must be set to FALSE in require/settings.php. And $globalLiveInterval must be higher than cron value.
For cron you can use something like:
* * * * * root /usr/bin/php /var/www/FlightAirMap/scripts/daemon-spotter.php >/dev/null 2>&1
This will run the script every minutes.
Every 10 minutes can also be enough:
*/10 * * * * root /usr/bin/php /var/www/FlightAirMap/scripts/daemon-spotter.php >/dev/null 2>&1
For cron you can use something like:
0 * * * * root /usr/bin/php /var/www/FlightAirMap/scripts/update_db.php >/dev/null 2>&1
This will run the script every hours.
Every 2 hours can also be enough:
0 */2 * * * root /usr/bin/php /var/www/FlightAirMap/scripts/update_db.php >/dev/null 2>&1