I have a dedicated machine with multiple host interfaces [eth0 for host network] and (eth1, eth2, eth3) additional, 3-static available IPs.

I want to create 3 network namespaces for each of these additional host interfaces to run 3 instances of "server.sh", but I want server.sh and it's child processes to be mandated under a Cgroup.

Is this command possible? Is this the best way to accomplish this functionality?

ip netns exec [namespace] cgexec -g subsystems:path_to_cgroup command arguments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.