Hi Lennart, Thank you very much for your reply.After set cgroup property to -1 it is showing value is updated in systemctl output systemctl show properties sshd.service -p CPUShares CPUShares=18446744073709551615
but value is not updated in cgroup configuration in below file, cat cpu,cpuacct/system.slice/sshd.service/cpu.shares 500 How we can set the default value in this file without restart systemd daemon or it will be done after implement the "systemctl revert <unit-file>" feature in systemd. Thanks & Regards Mohit Agrawal ----- Original Message ----- From: "Lennart Poettering" <[email protected]> To: "Mohit Agrawal" <[email protected]> Cc: [email protected] Sent: Monday, January 25, 2016 6:59:43 PM Subject: Re: [systemd-devel] Query regards to undefine property On Mon, 25.01.16 07:41, Mohit Agrawal ([email protected]) wrote: > Hi, > > I have one query specific to undefined property for specific cgroup > resources through systemctl. > Currently systemctl provide a option to set property for specific to cgroup > resources as like below > > systemctl set-property sshd.service CPUShares=500 > > but it does not provide any option to undefined it.I think systemctl should > provide some option to unset cgroup property [unset-cgroup property] for > specific service. > > Please share your input on this. You can set CPUShares to (uint64_t) -1 to reset it to the default. Most props have a logic like that. There's also a TODO list item to add "systemctl revert <unit>" that will drop all changes made like that back to the defaults in the main unit file. Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
