On 2/9/21 3:51 AM, Michal Koutný wrote:
On Mon, Feb 08, 2021 at 11:29:37AM -0700, Tom Hromatka 
<tom.hroma...@oracle.com> wrote:
+    def __run_cgrules(config):
+        cmd = list()
+
+        cmd.append('sudo')
+        cmd.append(Cgroup.build_daemon_path('cgrulesengd'))
+        cmd.append('-d')
+        cmd.append('-n')
+
+        if config.args.container:
+            config.container.run(cmd, shell_bool=True)
+        else:
+            Run.run(cmd, shell_bool=True)
Does this split have any use? (Given the previous discussion about
cgred in containers.)


Good find!  I'll throw an exception in the containers case just
to ensure that it doesn't get accidentally invoked.

Thanks.

Tom


Michal


_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to