The processes run by php's shell_exec () end up restarting apache. Is it possible to keep processes running uninterrupted when restarting apache?
Below the code I'm using:
$Command = "ksh -c '( trap \"\" 1 2 3 4 15; ";
$Command .= "./sc_serv /caminho-do-conf/sc_serv.conf";
$Command .= " > /dev/null )' & echo $!"." ;";
$ExecCommand = $Command;
echo "Comando Executado: " . $ExecCommand ;
$Result = shell_exec($ExecCommand);
echo "<pre>$Result</pre>";