API接口文档 - lizhibin205/php_crond GitHub Wiki
API接口文档
- 任务列表查询接口
接口地址:http://yourhost/
请求方式:GET
接口返回:
{
"code": 200,
"message": "success",
"data": {
"pid": 20972,
"status": "运行",
"running_task": [{
"pid": 20612,
"command": "sleep 15"
}]
}
- 重新加载任务列表
接口地址:http://yourhost/?c=console&a=reloadTasks
请求方式:GET
接口返回:无
- 关闭php_crond
接口地址:http://yourhost/?c=console&a=shutdown
请求方式:GET
接口返回:无