kavanpancholi/processlist
Composer 安装命令:
composer require kavanpancholi/processlist
包简介
A platform-independent way to retrieve the list of processes running on your systems. It works both on the Windows and Unix platforms.
README 文档
README
A platform-independent way to retrieve the list of processes running on your systems. It works both on the Windows and Unix platforms.
Add following line to your config/app.php under providers list
Kavanpancholi\Processlist\ProcesslistServiceProvider::class,
Run
composer dump-autoload
Steps to check if artisan command already running or not
Command File: e.g. Inspire.php in Console/Command
Use
use Kavanpancholi\Processlist\ProcessList;
Check for process in handler
public function handle(ProcessList $processList)
{
$isRunning = $processList->checkRunningCommand('command:name');
if (!$isRunning) {
// Do something
}
echo "This process is already running".PHP_EOL;
}
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-09-14