public static function start()
    {
        if (Bootstrap::$pid && Thread\Generic::ifExistsByPid(Bootstrap::$pid)) {
            Daemon::log('[START] phpDaemon with pid-file \'' . Daemon::$config->pidfile->value . '\' is running already (PID ' . Bootstrap::$pid . ')');
            exit(6);
        }

        Daemon::init();
        $pid = Daemon::spawnMaster();
        file_put_contents(Daemon::$config->pidfile->value, $pid);
    }