From 7d5ab921d36720b1554bc7ad5c2c93ee3c375d50 Mon Sep 17 00:00:00 2001 From: fancy Date: Wed, 22 Apr 2020 16:20:58 +0800 Subject: [PATCH] update readme --- readme.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/readme.md b/readme.md index b723d96..7826b58 100644 --- a/readme.md +++ b/readme.md @@ -78,7 +78,25 @@ If you changed config, remember to restart service sudo systemctl restart cgproxy.service ``` +## Other useful tools provided in this project +- `cgattach` attach specific process pid to specific cgroup which will create if not exist , cgroup can be only one level down exist cgroup, otherwise created fail. + + ```bash + cgattch + # example + cgattch 9999 /proxy.slice + ``` + +- `run_in_cgroup` run command in specific cgroup which will create if not exist , cgroup can be only one level down exist cgroup, otherwise created fail. + + ```bash + run_in_cgroup --cggroup=CGROUP + # example + run_in_cgroup --cggroup=/mycgroup.slice ping 127.0.0.1 + ``` + + ## NOTES