Add support for running the daemon the "Twisted Way"
Bug #946850 reported by
Duncan McGreggor
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Accomplishments System |
Fix Released
|
Critical
|
Duncan McGreggor |
Bug Description
Currently, the daemon is run via a shell script that performs some basic actions and then executes some Twisted (Python) code. The reactor.run() method is called directoy, instead of using either a Twisted plugin or, alternatively, a Twisted application.
We need to (at the very least) set up the daemon code so that a Twisted application is instantiated and then run as part of a Twisted service. This will provide greater stability, improved logging support, easier command-line control, and graceful exiting.
Related branches
lp:~oubiwann/ubuntu-accomplishments-system/946850-twisted-app
- Jono Bacon: Approve
-
Diff: 1248 lines (+504/-345)7 files modifiedaccomplishments/daemon/api.py (+276/-279)
accomplishments/daemon/app.py (+36/-11)
accomplishments/daemon/dbusapi.py (+46/-38)
accomplishments/daemon/service.py (+80/-0)
accomplishments/gui/TrophyinfoWindow.py (+1/-1)
accomplishments/util/__init__.py (+37/-1)
bin/daemon (+28/-15)
Changed in ubuntu-accomplishments-system: | |
assignee: | nobody → Duncan McGreggor (oubiwann) |
Changed in ubuntu-accomplishments-system: | |
status: | Incomplete → In Progress |
Changed in ubuntu-accomplishments-system: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
The deamon code is very monolithic right now, and won't lend itself to this very easily, as things are. I have some plans about how to accomplish this, and will create a blueprint for it, once that's turned on for the project.