|Keep It Simple, Stupid|
How to Configure Perl (or maybe cgi / apache) to launch processes in a wrapper command?by Rooster (Initiate)
|on Jan 16, 2014 at 15:47 UTC||Need Help??|
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 ascgexec -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.