protected function createProcess($interactive = false)
    {
        $process = new Process($this->container->resolve('SHELL'), null, null, null, null, []);

        if ($interactive) {
            $process->setTty(true);
        } else {
            if ($this->container->has('TIMEOUT') && $timeout = $this->container->get('TIMEOUT')) {
                $process->setTimeout($this->container->get('TIMEOUT'));
            }
        }

        return $process;
    }