/etc/init/ubuntu-espoo-service.conf is in ubuntu-location-provider-here 0.1+15.10.20150601.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | description "Ubuntu Espoo Position Provider"
# this requires DBus and is useless without posclientd; should cope with DBus
# services restarting though
start on started dbus and started ubuntu-location-provider-here-posclientd
stop on stopping dbus
respawn
env BASE="/custom/vendor/here/location-provider"
pre-start script
if ! [ -x "$BASE/bin/x86_64-linux-gnu/ubuntu-espoo-service" ]; then
echo "HERE binaries not found; disabling" >&2
stop
fi
# XXX need to move to session bus to avoid hardcoding this ~phablet test
if ! herepositioning-license-accepted; then
echo "HERE license not accepted; disabling" >&2
stop
fi
end script
script
LD_LIBRARY_PATH="$BASE/lib/x86_64-linux-gnu"
export LD_LIBRARY_PATH
exec "$BASE/bin/x86_64-linux-gnu/ubuntu-espoo-service" --bus system
end script
|