http://qs321.pair.com?node_id=1070817

Rooster has asked for the wisdom of the Perl Monks concerning the following question:

SO I've set up some linux control groups and they're working great....as long as I do everything from the command line. However, if I launch any processes from the web via apache using cgi to execute my perl scripts, every started process ends up being put into the control group of the user who started apache(because newly spawned processes inherit their parents ID).

After tons of research and trial and error, the only option I can think of is wrapping all the cgi files in a wrapper command that essentially executes as

cgexec -g subsystems:path_to_cgroup <command>`

and determine that by the linux user.

Is this really my only option?

BTW I'm using PAM to set the parent process on all the command line stuff, which I apparently can't use with apache as mod_auth_pam isn't supported anymore.

Cheers!