Merge lp:~ted/indicator-sync/upstart-no-greeter into lp:indicator-sync

Proposed by Ted Gould
Status: Merged
Approved by: Charles Kerr
Approved revision: 44
Merged at revision: 43
Proposed branch: lp:~ted/indicator-sync/upstart-no-greeter
Merge into: lp:indicator-sync
Diff against target: 18 lines (+10/-0)
1 file modified
data/indicator-sync.conf.in (+10/-0)
To merge this branch: bzr merge lp:~ted/indicator-sync/upstart-no-greeter
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Charles Kerr (community) Approve
Review via email: mp+197498@code.launchpad.net

Commit message

Stop the Upstart job from running on the greeter

Description of the change

This is a little bit of a hack, but we're handling the error, and not putting too much time into it until we know more where it is going.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) wrote :

This is a little hacky, but I agree it's solving the problem.

To test, I locked the screen & went to the greeter and waited for 60 seconds. During that time, /var/lib/lightdm/.cache/upstart/indicator-sync.log grew by 264 lines.

In a second equivalent test, it grew by 235 lines.

In another equivalent test *after* applying this patch, it grew by 4 lines.

review: Approve
Revision history for this message
Charles Kerr (charlesk) wrote :

To be clear: in addition to this fix which solves the short-term issue in bug #1255719, this should also be solved properly for the non-libindicator items as well.

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/indicator-sync.conf.in'
2--- data/indicator-sync.conf.in 2013-08-27 20:49:49 +0000
3+++ data/indicator-sync.conf.in 2013-12-03 11:12:04 +0000
4@@ -5,4 +5,14 @@
5
6 respawn
7
8+# limit to two times in a five second period
9+respawn limit 2 5
10+
11+pre-start script
12+ # The sync indicator shouldn't be on the greeter
13+ if [ "${USER}" = "lightdm" ]; then
14+ stop
15+ fi
16+end script
17+
18 exec @pkglibexecdir@/indicator-sync-service

Subscribers

People subscribed via source and target branches