Merge lp:~jamesodhunt/ubuntu/utopic/cgmanager/enable-upstart-cgroup-support into lp:ubuntu/utopic/cgmanager

Proposed by James Hunt
Status: Merged
Merged at revision: 45
Proposed branch: lp:~jamesodhunt/ubuntu/utopic/cgmanager/enable-upstart-cgroup-support
Merge into: lp:ubuntu/utopic/cgmanager
Diff against target: 37 lines (+13/-1)
3 files modified
debian/cgmanager.cgmanager.upstart (+2/-0)
debian/cgmanager.cgproxy.upstart (+4/-1)
debian/changelog (+7/-0)
To merge this branch: bzr merge lp:~jamesodhunt/ubuntu/utopic/cgmanager/enable-upstart-cgroup-support
Reviewer Review Type Date Requested Status
Dimitri John Ledkov Pending
Review via email: mp+227209@code.launchpad.net

Description of the change

Upstart 1.13 now includes cgroup support. However, it is not enabled until init is notified that the cgmanager is running by invoking 'initctl notify-cgroup-manager-address'.

This MP makes that call once the cgmanager is running.

XXX: Note the '|| true' which is to avoid a circular dependency by making cgmanager depend on 'upstart (>= 1.13)' (since upstart already indirectly depends on cgmanager via the libcgmanager-dev build-dep. The '|| true' therefore will attempt to enable cgroup support of the version of upstart running supports it, but not fail if it doesn't.

Assigned to xnox as result of Foundations meeting on #ubuntu-meeting today as we wish to delay the upload for a few days:

<snip>
6:25:15 <xnox> jodh: and i'd want to land that when it's relatively quite in the archive, It's not at the moment. Maybe later on friday and/or over the weekend - monday time.

6:26:28 <jodh> xnox: I vote for Monday (Warsaw's Second Law :)
</snip>

To post a comment you must log in.
38. By James Hunt

d/cgmanager.cgproxy.upstart: Same change for cgproxy.

39. By James Hunt

* Doh.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Looks good to me, thanks. James, note that we now have upstart and sysv init scripts in upstream cgmanager git, under config/init/. Can you post a git pull request to do the same there?

Revision history for this message
James Hunt (jamesodhunt) wrote :
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

We also need user-session job to do the same notification on startup.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/cgmanager.cgmanager.upstart'
2--- debian/cgmanager.cgmanager.upstart 2014-04-14 00:13:44 +0000
3+++ debian/cgmanager.cgmanager.upstart 2014-07-17 16:02:41 +0000
4@@ -35,3 +35,5 @@
5
6 exec /sbin/cgmanager --sigstop $cgmanager_opts $cgm_extra_mounts
7 end script
8+
9+post-start exec initctl notify-cgroup-manager-address "unix:path=/sys/fs/cgroup/cgmanager/sock" || true
10
11=== modified file 'debian/cgmanager.cgproxy.upstart'
12--- debian/cgmanager.cgproxy.upstart 2014-04-14 00:13:44 +0000
13+++ debian/cgmanager.cgproxy.upstart 2014-07-17 16:02:41 +0000
14@@ -30,4 +30,7 @@
15 exec /sbin/cgproxy --sigstop $cgmanager_opts
16 end script
17
18-post-start exec initctl emit -n cgmanager-ready
19+post-start script
20+initctl emit -n cgmanager-ready
21+initctl notify-cgroup-manager-address "unix:path=/sys/fs/cgroup/cgmanager/sock" || true
22+end script
23
24=== modified file 'debian/changelog'
25--- debian/changelog 2014-07-10 12:37:44 +0000
26+++ debian/changelog 2014-07-17 16:02:41 +0000
27@@ -1,3 +1,10 @@
28+cgmanager (0.26-0ubuntu6) UNRELEASED; urgency=medium
29+
30+ * d/cgmanager.cgmanager.upstart: Enable cgroup support in Upstart.
31+ * d/cgmanager.cgproxy.upstart: Same change for cgproxy.
32+
33+ -- James Hunt <james.hunt@ubuntu.com> Thu, 17 Jul 2014 16:54:29 +0100
34+
35 cgmanager (0.26-0ubuntu5) utopic; urgency=medium
36
37 * apply from upstream:

Subscribers

People subscribed via source and target branches