[systemd-devel] Antw: [EXT] Re: Moving a service from one systemd slice to another..

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Mon May 4 06:34:18 UTC 2020


>>> Tomasz Torcz <tomek at pipebreaker.pl> schrieb am 04.05.2020 um 08:31 in
Nachricht
<15340_1588573891_5EAFB6C2_15340_15_1_20200504063117.GA1101772 at mother.pipebreake

.pl>:
> On Mon, May 04, 2020 at 11:52:37AM +0530, nitish nagesh wrote:
>> Hello,
>> 
>>    We have this odd want to move a daemon between different systemd
slices.
>> Not sure if that's even a valid thing to do, but here is the requirement.
> 
>   You can use low‑level cgroup access to move it. Something like:
> systemctl show ‑‑property MainPID ‑‑value your.service > 
> /sys/fs/cgroup/NEW.slice/cgroup.procs

What if the service has multiple PIDs and/or threads? Do they all have to be
moved?

> 
> Process can only be in one cgroup at the time, so it will be moved.
> 
> ‑‑ 
> Tomasz Torcz                        Once you've read the dictionary,
> tomek at pipebreaker.pl                every other book is just a remix.
> _______________________________________________
> systemd‑devel mailing list
> systemd‑devel at lists.freedesktop.org 
> https://lists.freedesktop.org/mailman/listinfo/systemd‑devel 





More information about the systemd-devel mailing list