更新:定时任务重新修改

This commit is contained in:
JaguarJack
2021-01-17 11:21:52 +08:00
parent cff7b38058
commit 3f154e5fb5
5 changed files with 98 additions and 5 deletions

View File

@@ -1 +0,0 @@
<?php

View File

@@ -116,7 +116,7 @@ trait RegisterSignal
$process->exit();
});
$process->start();
$process->start();
Process::alarm($this->interval);
});

View File

@@ -121,7 +121,7 @@ trait Store
{
$pidFile = config('catch.crontab.master_pid_file');
if (!file_exists($pidFile)) {
if (!FileSystem::exists($pidFile)) {
return 0;
}
@@ -136,7 +136,7 @@ trait Store
*/
public function renderStatus()
{
return file_get_contents(self::statusPath());
return FileSystem::sharedGet(self::statusPath());
}
/**