Merge lp:~ted/url-dispatcher/no-sleep-for-the-refresh into lp:url-dispatcher

Proposed by Ted Gould
Status: Merged
Approved by: Michael Terry
Approved revision: 98
Merged at revision: 98
Proposed branch: lp:~ted/url-dispatcher/no-sleep-for-the-refresh
Merge into: lp:url-dispatcher
Diff against target: 42 lines (+2/-8)
3 files modified
data/url-dispatcher-refresh.conf.in (+0/-8)
data/url-dispatcher-update-system.conf.in (+1/-0)
data/url-dispatcher-update-user.conf.in (+1/-0)
To merge this branch: bzr merge lp:~ted/url-dispatcher/no-sleep-for-the-refresh
Reviewer Review Type Date Requested Status
Michael Terry Approve
unity-api-1-bot continuous-integration Needs Fixing
Review via email: mp+310564@code.launchpad.net

Commit message

Instead of sleeping make the refresh tasks low enough priority they don't get in the way

Description of the change

Helps logout on the snap as well

To post a comment you must log in.
Revision history for this message
unity-api-1-bot (unity-api-1-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Terry (mterry) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/url-dispatcher-refresh.conf.in'
2--- data/url-dispatcher-refresh.conf.in 2014-08-20 18:58:49 +0000
3+++ data/url-dispatcher-refresh.conf.in 2016-11-10 16:59:36 +0000
4@@ -4,14 +4,6 @@
5
6 emits url-dispatcher-update-user url-dispatcher-update-system
7
8-pre-start script
9-# If we're starting with url-dispatcher let's let the rest of the
10-# system have a chance to settle.
11- if [ "$UPSTART_EVENTS" = "started" ] ; then
12- sleep 60
13- fi
14-end script
15-
16 script
17 initctl emit url-dispatcher-update-system
18 initctl emit url-dispatcher-update-user
19
20=== modified file 'data/url-dispatcher-update-system.conf.in'
21--- data/url-dispatcher-update-system.conf.in 2016-11-08 19:53:01 +0000
22+++ data/url-dispatcher-update-system.conf.in 2016-11-10 16:59:36 +0000
23@@ -3,6 +3,7 @@
24 start on (file FILE=@datadir@/url-dispatcher/urls/*.url-dispatcher) or url-dispatcher-update-system
25
26 task
27+nice 19
28
29 pre-start script
30 RUNNING=$(initctl status url-dispatcher | grep start/running 2> /dev/null)
31
32=== modified file 'data/url-dispatcher-update-user.conf.in'
33--- data/url-dispatcher-update-user.conf.in 2016-11-08 22:14:54 +0000
34+++ data/url-dispatcher-update-user.conf.in 2016-11-10 16:59:36 +0000
35@@ -3,6 +3,7 @@
36 start on (file FILE=~/.config/url-dispatcher/urls/*.url-dispatcher) or url-dispatcher-update-user
37
38 task
39+nice 19
40
41 pre-start script
42 RUNNING=$(initctl status url-dispatcher | grep start/running 2> /dev/null)

Subscribers

People subscribed via source and target branches