启动 tmux 守护进程:
systemd-run --user --scope --unit=tmux tmux $@
启动 VirtualBox 虚拟机,并设置 I/O 权重:
systemd-run --user -p IOWeight=10 --scope --unit=Win10 VBoxManage startvm Win10
启动 zsh,并限制内存使用:
systemd-run --scope -p MemoryMax=128M zsh -l
注意:cgroup v1 与 --user
同时使用无效。