Symfony\Component\Process\Process::restart
Restarts the process.
Be warned that the process is cloned before being started.
Signature
public function restart([callable
$callback = null] )
Parameters
$callback
— object- A PHP callback to run whenever there is some
output available on STDOUT or STDERR
Returns
- Process
- The new process
Errors/Exceptions
-
RuntimeException
- When process can't be launch or is stopped
-
RuntimeException
- When process is already running