>>Interesting. I need toö take a look at the code in 'systemd-run' to see how >>complex that is. Are there any disadvantages?
I don't see any disadvantages. from systemd-run: " If a command is run as transient scope unit, it will be started directly by systemd-run and thus inherit the execution environment of the caller. It is however managed by the service manager similar to normal services, and will also show up in the output of systemctl list-units. Execution in this case is synchronous, and execution will return only when the command finishes. " So it's like a temp service management from systemd. Also as advantage, is it also possible to catch qemu crash with journalctl ? ----- Mail original ----- De: "dietmar" <diet...@proxmox.com> À: "aderumier" <aderum...@odiso.com> Cc: "pve-devel" <pve-devel@pve.proxmox.com> Envoyé: Jeudi 28 Mai 2015 17:31:34 Objet: Re: [pve-devel] qemu-server: cgroups && cpu.shares implementation > systemd-run --scope --slice=qemu --unit 100 -p CPUShares=499 /usr/bin/kvm -id > 100 ... > > > like this, cgroup is autoremoved on process stop. Interesting. I need toö take a look at the code in 'systemd-run' to see how complex that is. Are there any disadvantages? _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel