Properly shutdown Dmedia when user logs out

Reported by Jason Gerard DeRose on 2012-07-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dmedia
High
Jason Gerard DeRose

Bug Description

Currently CouchDB (and some misc Dmedia sub-processes) are left running when the user logs out. This is problematic because when the user logs back in, you'll have the old CouchDB process running plus the new one started by Dmedia.

Thanks to some help from Rodney Dawes, I have a branch that uses his call_on_disconnection() trick to properly shutdown Dmedia, something like this:

bus = dbus.SessionBus()
bus.call_on_disconnection(your_method_to_do_stuff)

It seems quite reliable in the testing I've done so far, so I think we should land this for 12.07.

Related branches

lp:~jderose/dmedia/shutdown
Merged into lp:dmedia at revision 423
dmj726: Approve on 2012-07-16
Changed in dmedia:
status: In Progress → Fix Committed
Changed in dmedia:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers