Skip to content
Steven Davies edited this page Sep 28, 2017 · 3 revisions

Cron job

daemon-spotter

$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

update-db

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
Clone this wiki locally