/etc/init/ubuntu-location-provider-here-posclientd.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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | description "Nokia Here positioning services"
# this requires DBus and is useless without slpgwd; should cope with DBus
# services restarting though
start on started dbus and started ubuntu-location-provider-here-slpgwd
stop on stopping dbus
respawn
console log
env BASE="/custom/vendor/here/location-provider"
env STORAGE="/userdata/system-data/var/lib/ubuntu-location-provider-here"
pre-start script
if ! [ -x "$BASE/bin/x86_64-linux-gnu/posclientd" ]; 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
. /usr/share/ubuntu-location-provider-here/functions
# set the env variables
if [ "$(getprop custom.location.report_imei)" = "true" ]; then
setup_here_ofono_env
else
here_dummy_ofono_env
fi
setup_here_props
setup_here_device_id
mkdir -p "$STORAGE"
LD_LIBRARY_PATH="$BASE/lib/x86_64-linux-gnu"
export LD_LIBRARY_PATH
exec "$BASE/bin/x86_64-linux-gnu/posclientd" \
--preinst-dir "$BASE/share" --storage-dir "$STORAGE"
end script
|