[systemd-devel] Query regards to undefine property

Lennart Poettering lennart at poettering.net
Mon Jan 25 05:29:43 PST 2016


On Mon, 25.01.16 07:41, Mohit Agrawal (moagrawa at redhat.com) 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


More information about the systemd-devel mailing list