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

Reply via email to