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
=== modified file 'debian/cgmanager.cgmanager.upstart'
--- debian/cgmanager.cgmanager.upstart 2014-04-14 00:13:44 +0000
+++ debian/cgmanager.cgmanager.upstart 2014-07-17 16:02:41 +0000
@@ -35,3 +35,5 @@
3535
36 exec /sbin/cgmanager --sigstop $cgmanager_opts $cgm_extra_mounts36 exec /sbin/cgmanager --sigstop $cgmanager_opts $cgm_extra_mounts
37end script37end script
38
39post-start exec initctl notify-cgroup-manager-address "unix:path=/sys/fs/cgroup/cgmanager/sock" || true
3840
=== modified file 'debian/cgmanager.cgproxy.upstart'
--- debian/cgmanager.cgproxy.upstart 2014-04-14 00:13:44 +0000
+++ debian/cgmanager.cgproxy.upstart 2014-07-17 16:02:41 +0000
@@ -30,4 +30,7 @@
30 exec /sbin/cgproxy --sigstop $cgmanager_opts30 exec /sbin/cgproxy --sigstop $cgmanager_opts
31end script31end script
3232
33post-start exec initctl emit -n cgmanager-ready33post-start script
34initctl emit -n cgmanager-ready
35initctl notify-cgroup-manager-address "unix:path=/sys/fs/cgroup/cgmanager/sock" || true
36end script
3437
=== modified file 'debian/changelog'
--- debian/changelog 2014-07-10 12:37:44 +0000
+++ debian/changelog 2014-07-17 16:02:41 +0000
@@ -1,3 +1,10 @@
1cgmanager (0.26-0ubuntu6) UNRELEASED; urgency=medium
2
3 * d/cgmanager.cgmanager.upstart: Enable cgroup support in Upstart.
4 * d/cgmanager.cgproxy.upstart: Same change for cgproxy.
5
6 -- James Hunt <james.hunt@ubuntu.com> Thu, 17 Jul 2014 16:54:29 +0100
7
1cgmanager (0.26-0ubuntu5) utopic; urgency=medium8cgmanager (0.26-0ubuntu5) utopic; urgency=medium
29
3 * apply from upstream:10 * apply from upstream:

Subscribers

People subscribed via source and target branches