On Fri, Sep 18, 2015 at 5:25 PM, Lennart Poettering <[email protected]> wrote: > On Fri, 18.09.15 14:45, Francis Moreau ([email protected]) wrote: > >> > # systemd-run --slice=my-deep-slice.slice -p MemoryLimit=3G /bin/sleep >> > 99999 >> > >> > It creates the specified slice, and places the new service in it, then >> > adds the process in it and sets the memory.limit_in_bytes= attribute >> > on the services' cgroup. >> > >> > Does this not work for you? >> >> I dont think so: >> >> $ cat ~/.config/systemd/user/myslice.slice > > Controller access is not permitted for --user instances of systemd if > the legacy hierarchy is used, as that's not deemed safe by the kernel > guys. >
Wouldn't that make sense to fail in that case then or at least give a warning ? Thanks -- Francis _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
