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

Proposed by Dimitri John Ledkov on 2015-01-11
Status: Rejected
Rejected by: Iain Lane on 2015-09-02
Proposed branch: lp:~xnox/ubuntu/vivid/nuntium/drop-sys-events
Merge into: lp:ubuntu/vivid/nuntium
Diff against target: 31 lines (+13/-2)
2 files modified
debian/changelog (+7/-0)
debian/nuntium.conf (+6/-2)
To merge this branch: bzr merge lp:~xnox/ubuntu/vivid/nuntium/drop-sys-events
Reviewer Review Type Date Requested Status
Iain Lane 2015-01-11 Resubmit on 2015-09-02
James Hunt 2015-08-14 Pending
Martin Pitt 2015-01-17 Pending
Sergio Schvezov 2015-01-11 Pending
Oliver Grawert 2015-01-11 Pending
Review via email: mp+246051@code.launchpad.net

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.
Dimitri John Ledkov (xnox) wrote :

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.

Sebastien Bacher (seb128) wrote :

could somebody review that change?

Dimitri John Ledkov (xnox) wrote :

dunno, let me try my colleague james...

James Hunt (jamesodhunt) wrote :

I can't test this, but looks good in principle.

Martin Pitt (pitti) wrote :

I haven't tested this either, how can this be done? "I get a bubble for receiving an SMS", or is it only an MMS as the package description says?

But it looks good indeed.

Iain Lane (laney) wrote :

Shouldn't this be on lp:nuntium? Can you re-file it there?

What does "''" mean? Empty string or wildcard?

review: Resubmit
Dimitri John Ledkov (xnox) wrote :

@Laney and what is https://code.launchpad.net/~xnox/nuntium/drop-sys-events/+merge/246049 ?

Please merge this already........ somehow..... it's been 8 months now.

Note that the "dbus" even is the same in both start on and stop condition. The difference between them are the ARG1/ARG2, when a name is acquired it goes from empty -> something rather (unique dbus object name); when lost the even goes from something rather -> empty.

Hence the ARG1='' ARG2='*' for start; and ARG1='*' ARG2='' for stop.

Iain Lane (laney) wrote :

On Wed, Sep 02, 2015 at 10:11:47AM -0000, Dimitri John Ledkov wrote:
> @Laney and what is https://code.launchpad.net/~xnox/nuntium/drop-sys-events/+merge/246049 ?
>
> Please merge this already........ somehow..... it's been 8 months now.

Thanks :)

I asked abeato if he would review that.

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Unmerged revisions

19. By Dimitri John Ledkov on 2015-01-11

Migrate from :sys:started events to dbus owner signals. (LP:
#1409356)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-11-07 16:01:53 +0000
3+++ debian/changelog 2015-01-11 00:50:14 +0000
4@@ -1,3 +1,10 @@
5+nuntium (1.1-0ubuntu2) UNRELEASED; urgency=medium
6+
7+ * Migrate from :sys:started events to dbus owner signals. (LP:
8+ #1409356)
9+
10+ -- Dimitri John Ledkov <dimitri.j.ledkov@linux.intel.com> Sun, 11 Jan 2015 00:49:17 +0000
11+
12 nuntium (1.1-0ubuntu1) vivid; urgency=medium
13
14 * Minor tree refactor.
15
16=== modified file 'debian/nuntium.conf'
17--- debian/nuntium.conf 2014-05-14 14:21:59 +0000
18+++ debian/nuntium.conf 2015-01-11 00:50:14 +0000
19@@ -1,6 +1,10 @@
20 description "nuntium service binds ofono and telepathy-ofono for MMS"
21
22-start on (:sys:started JOB=ofono or started dbus)
23-stop on :sys:stopping JOB=ofono
24+# Start on session dbus is spawned or
25+# org.ofono bus name appears on system dbus
26+# Stop on org.ofono bus name disappearing on system dbus
27+
28+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='*')
29+stop on dbus SIGNAL='NameOwnerChanged' BUS='system' INTERFACE='org.freedesktop.DBus' OBJPATH='/org/freedesktop/DBus' SENDER='org.freedesktop.DBus' ARG0='org.ofono' ARG1='*' ARG2=''
30
31 exec nuntium

Subscribers

People subscribed via source and target branches