public function handleInit(Control $control, Context $context)
    {
        if (! $context->pidfile instanceof Pidfile) {
            $context->pidfile = new Pidfile($control, $this->getOption('name'), $this->getOption('lock_dir'));
        }
        $context->isRunning = $context->pidfile->isActive();
        $context->processId = $context->pidfile->getProcessId();
    }