初始化
This commit is contained in:
1 parent
c3435595fe
commit
00d7a381aa
70 files changed
+3913
-1
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace think\worker;
|
||||
|
||||
class Worker extends \Workerman\Worker
|
||||
{
|
||||
protected static function init(): void
|
||||
{
|
||||
static::$pidFile = runtime_path() . 'worker.pid';
|
||||
static::$statusFile = runtime_path() . 'worker.status';
|
||||
static::$logFile = runtime_path() . 'worker.log';
|
||||
parent::init();
|
||||
}
|
||||
|
||||
protected static function parseCommand(): void
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user