/etc/init/ubuntu-location-provider-here-after-wizard.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 | description "Start HERE positioning and Location Service provider after wizard completes"
# this task will start after greeter completes; ideally it should start when
# the license property is set and for this we could check
# /var/lib/AccountsService/users/phablet but that's kind of a private path and
# it might get updated fairly often (e.g. it contains a sound level)
# XXX need to move to session bus to avoid hardcoding this ~phablet test
start on file FILE=/home/phablet/.config/ubuntu-system-settings/wizard-has-run EVENT=create
task
script
# HACK: the location-service gets busted when we restart it and the other processes are not
# in the correct order. We stop location, start all the other services in the correct order
# and start location again
# XXX ugly, we need to restart location-service to pickup the now available provider :-/
if [ -f "/home/phablet/.config/ubuntu-system-settings/wizard-has-run-and-location-job-too" ]; then
stop; exit 0
fi
sleep 5
stop ubuntu-location-provider-here-posclientd || true
stop ubuntu-location-provider-here-slpgwd || true
stop ubuntu-location-service || true
start ubuntu-location-provider-here-slpgwd || true
start ubuntu-location-service
touch /home/phablet/.config/ubuntu-system-settings/wizard-has-run-and-location-job-too
stop; exit 0
end script
|