/etc/init/ubuntu-location-provider-here-slpgwd.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 46 | description "Nokia Here positioning services"
# this requires DBus and consumes data from oFono and NM; should cope with DBus
# services restarting though
start on started dbus and started ofono and started network-manager
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"
env SCRIPT="/usr/share/ubuntu-location-provider-here/set-enviroment.sh"
pre-start script
if ! [ -x "$BASE/bin/x86_64-linux-gnu/slpgwd" ]; 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/slpgwd" \
--preinst-dir "$BASE/share" --storage-dir "$STORAGE"
end script
|