lshttpd & lscgid processes?
Installing litespeed was so easy and now being a techy i am trying to understand the nitty-gritties of its working model. At the first start using "lswsctrl start", it launched 3 processes:
root 27971 0.0 0.6 5104 1776 ? S 08:31 0:00 ./lshttpd
root 27973 0.0 0.1 1584 320 ? S 08:31 0:00 httpd (lscgid)
nobody 27974 0.0 0.6 5540 1612 ? S 08:31 0:00 ./lshttpd
At quick look at the output of netstat revealed that the first process started by root is listening to both admin and http ports while the other two are its children. Now I wonder being a web server working on the ansynchrous select based model, why it has launched another copy of lshttpd? And whats the purpose of this "lscgid"? After replacing this file with a dummy executable I found out that although litespeed starts, and php scripts work but cgi scripts don't. So is it basically to provide just age old CGI functionality? Will PHP in fastcgi mode work without this daemon or this is required for FCGI too? If its just for CGI, I really don't need it so can it be stopped?
Now back to my original question about two copies of "lshttpd" processes? Is the first one just to listen to ports and second one to handle connections? I tried changing "Auto Restart" to on and off but in both cases there are 2 copies of lshttpd running, contrary to the description of this feature. Under normal conditions does the parent process kills this one children after some number of connections and forks another child?
I would be really glad to someone who can answer to my curiousities.