[Bug 1379572] Re: [krillin] Restart ofono, cause repeated crashes in ril plugin

2014-10-10 Thread Alfonso Sanchez-Beato
@Tony, right, upstart uses the original environment when re-starting
after a crash.

The command line if you want to start/re-start ofono using upstart is:

# stop ofono
# start ofono OFONO_RIL_DEVICE=mtk OFONO_RIL_NUM_SIM_SLOTS=2

or

# restart ofono OFONO_RIL_DEVICE=mtk OFONO_RIL_NUM_SIM_SLOTS=2

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1379572

Title:
  [krillin] Restart ofono, cause repeated crashes in ril plugin

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc-android-config/+bug/1379572/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1379572] Re: [krillin] Restart ofono, cause repeated crashes in ril plugin

2014-10-09 Thread Tony Espy
This bug was due to my lack of understanding of the way upstart works.

I've confirmed that crashes and subsequent respawns will use the
original environment variables.

That said, if ofono is restarted ( stop ofono/start ofono, or restart
ofono ), the environment variables are not set in the user's session (
as rild.conf didn't run in the user session ), so the default values of
'ril' and 1 are used.

So lesson learned, if you want to restart ofono on krillin, make sure to
specify the environment variables.

** Changed in: lxc-android-config (Ubuntu)
   Status: New = Invalid

** Changed in: lxc-android-config (Ubuntu)
 Assignee: Alfonso Sanchez-Beato (alfonsosanchezbeato) = (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1379572

Title:
  [krillin] Restart ofono, cause repeated crashes in ril plugin

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc-android-config/+bug/1379572/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs