Scripts for the Photon geocoder
The script photon in the start-stop/ folder is a Debian init script (should be usable with other distributions).
It permits to start, stop, restart and view the status of the Java programm launched as daemon.
The script photon_update.sh in the update/ folder is an updater for the Photon's Elasticsearch indexes.
It can be used manually launching the script directly via CLI but also in crontab.
We recommend to launch it once a week thrue a crontab job (the Photon's Elasticsearche indexes are updated on the source repository once a week).
Since the files in the database are different from an export to an other, the new downloaded files didn't replace the former ones.
Now we make a backup of the former database (in /var/www/photon/photon_data_save) before upgrading it.
The original version of the script