/** * 解析运行模式参数 * @param $opt */ public static function params_d($opt) { if (isset($opt["d"]) || isset($opt["daemon"])) { Crontab::$daemon = true; } }
/** *重启 */ public static function restart() { self::stop(); self::$daemon = true; self::start(); }
/** *是否以守护进程方式运行 *@param $opt */ public static function options_d($opt) { if (isset($opt['d']) || isset($opt['daemon'])) { Crontab::$daemon = true; } }