[Bug 1405256] Re: Package does not contain service file
Serge Hallyn
1405256 at bugs.launchpad.net
Sat Jan 10 16:23:34 UTC 2015
So I think long term (i.e. 16.04 and later) this will become a job for
systemd. What I'm not sure about is whether in the meantime we want
to implement another generic way of achieving this, or simply show
how to do it manually. I personally think the simplest thing to do
would be to create an upstart job that creates the cgroups you want.
For instances if you want a Web cgroup in the memory, cpuset, and
freezer hierarchies, owned by uid 100, with certain constraints, and you
have cgmanager and cgmanager-utils installed, you could create
/etc/init/setup-cgroups.conf containing (untested):
description "set up initial cgroups"
task
start on started cgmanager
script
cgm movepidabs all / $$
cgm create freezer Web
cgm create memory Web
cgm create cpuset Web
cgm setvalue cpuset Web cpuset.cpus "0-1"
cgm setvalue cpuset Web cpuset.mems "0"
cgm chown freezer Web 1000 1000
cgm chown memory Web 1000 1000
cgm chown cpuset Web 1000 1000
end script
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libcgroup in Ubuntu.
https://bugs.launchpad.net/bugs/1405256
Title:
Package does not contain service file
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libcgroup/+bug/1405256/+subscriptions
More information about the Ubuntu-server-bugs
mailing list