Comment 6 for bug 1401143

Revision history for this message
Martin Pitt (pitti) wrote :

I tried this on a desktop and on mako, both work. I unfortunately can't try this in an emulator as that seems to have broken since last week (bug 1413271), and I don't have a krillin so I can't test this there myself.

Indeed phonesim-autostart does that (through the with-ofono-phonesim script):

service ofono stop || true
ofonod -P ril,rildev,stktest $DEBUG_OFONO -n >/etc/ofono/ofono.log 2>&1 &
OFONO_PID=$!

The || true is intended to guard against failure if ofono is already stopped. But that might be the place where things go wrong in krillin, if ofono somehow fails to stop there? If it runs on, then the ofonod invocation in the next line should fail, not the original instance from the upstart job, but maybe there's something funky going on there. Are there any upstart jobs which are krillin specific and mention ofono in any way?

It might be useful to install just ofono-phonesim *without* ofono-phonesim-autostart, and run with-ofono-phonesim through set -x. Check Which of these succeeds/fails, and use upstart-monitor to see what else happens during that time?