Say I have a SSI script that uses exec, or a PHP script that uses exec or proc_open, to start a process when a users sends some data from their browser to my server. Am I correct that this spawned process will terminate when the server finishes processing the request and sends the response back to the server? Whether I use SSI or PHP the spawned process will terminate at this point, right?
And hence there is no way to 'keep the process alive' between separate requests so I would need to write a daemon program if I want to interact with the same process on subsequent requests?