[Unit]
Description=vreaudigital — Photon 0.5.0 geocoder (Elasticsearch backend) for RO firms
After=network.target

[Service]
Type=simple
User=bulibasa
WorkingDirectory=/opt/photon
ExecStart=/usr/bin/java -Xmx8G -jar /opt/photon/photon-0.5.0.jar -data-dir /opt/photon -listen-port 2322
Restart=on-failure
RestartSec=15
StandardOutput=append:/var/log/vreaudigital-photon.log
StandardError=append:/var/log/vreaudigital-photon.log
LimitNOFILE=65536
LimitMEMLOCK=infinity

[Install]
WantedBy=multi-user.target
