Is there a way to start a script from another process, so that if the process dies/ends, the script still continues?
Will setuid do this? If I were to set the owner to root, and then start the script?
For example, if I have some PHP code starting a script, but httpd dies or gets killed, I think that it takes my script with it. Is there a way around this?
Specifically, I’m on Fedora 10 with Apache 2 and PHP 5.
From here:
Additionally, it’s a good idea to close STDIN, STDOUT, and STDERR but I’m not sure how to do that in PHP.