rinigus / osmscout-server

Maps server providing tiles, geocoder, and router
https://rinigus.github.io/osmscout-server
GNU General Public License v3.0
166 stars 28 forks source link

Use stable hard-coded path in service file for Lomiri #445

Closed jonnius closed 7 months ago

jonnius commented 7 months ago

Currently, the ExecStart field in the service file on Ubuntu Touch / Lomiri contains the app version. This breaks the service on each update. This PR changes the path to a hard-coded and stable one.

rinigus commented 7 months ago

I don't get it - why is QCoreApplication::applicationFilePath not the same path in UT? What is it then? Maybe we should fix that...

jonnius commented 7 months ago

It returns the correct path (/opt/click.ubuntu.com/osmscout-server.jonnius/<version>/usr/bin/osmscout-server). The problem is that this path changes with each update. So we are storing a rather volatile path into the persistent systemd service file.

There is a symlink current always pointing to the current version. That is what I am using in this workaround, providing a stable path over versions.

Without this workaround I see two alternatives:

rinigus commented 7 months ago

I see. No, we can surely add this workaround. Merging.