Merge lp:~xnox/nuntium/drop-sys-events into lp:nuntium

Proposed by Alfonso Sanchez-Beato
Status: Needs review
Proposed branch: lp:~xnox/nuntium/drop-sys-events
Merge into: lp:nuntium
Diff against target: 16 lines (+6/-2)
1 file modified
debian/nuntium.conf (+6/-2)
To merge this branch: bzr merge lp:~xnox/nuntium/drop-sys-events
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Pending
Ubuntu Phablet Team Pending
Martin Pitt Pending
Review via email: mp+269884@code.launchpad.net

This proposal supersedes a proposal from 2015-09-02.

Commit message

Migrate from :sys:started events to dbus owner signals.

Description of the change

Migrate from :sys:started events to dbus owner signals.

To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote : Posted in a previous version of this proposal

When system upstart goes away, :sys:started/stopped/starting/stopping events will go away.

One option is to introduce a user session event bridge which will relay similar events from systemd. I have a working prototype for that, however incomplete information is exposed by systemd at the moment.

Another option is to key onto approximately equivalent events which are already available.

This is a master bug to track all users and port them.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote : Posted in a previous version of this proposal
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote : Posted in a previous version of this proposal

MP for lp:nuntium/packaging just landed.

Unmerged revisions

82. By Dimitri John Ledkov

Migrate from :sys:started events to dbus owner signals.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/nuntium.conf'
2--- debian/nuntium.conf 2014-05-09 20:22:03 +0000
3+++ debian/nuntium.conf 2015-09-02 10:44:32 +0000
4@@ -1,6 +1,10 @@
5 description "nuntium service binds ofono and telepathy-ofono for MMS"
6
7-start on (:sys:started JOB=ofono or started dbus)
8-stop on :sys:stopping JOB=ofono
9+# Start on session dbus is spawned or
10+# org.ofono bus name appears on system dbus
11+# Stop on org.ofono bus name disappearing on system dbus
12+
13+start on (started dbus or dbus SIGNAL='NameOwnerChanged' BUS='system' INTERFACE='org.freedesktop.DBus' OBJPATH='/org/freedesktop/DBus' SENDER='org.freedesktop.DBus' ARG0='org.ofono' ARG1='' ARG2='*')
14+stop on dbus SIGNAL='NameOwnerChanged' BUS='system' INTERFACE='org.freedesktop.DBus' OBJPATH='/org/freedesktop/DBus' SENDER='org.freedesktop.DBus' ARG0='org.ofono' ARG1='*' ARG2=''
15
16 exec nuntium

Subscribers

People subscribed via source and target branches