21 Star 35 Fork 13

呵大官人 / crontabx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config.php 822 Bytes
一键复制 编辑 原始数据 按行查看 历史
呵大官人 提交于 2015-12-28 09:47 . optimize usleep
<?php
return array(
'pidfile' => '/tmp/crontab.pid',
'logfile' => '/tmp/crontab.log',
'loglevel' => 2,
'daemonize' => false,
'crontab' => array(
array(//test(守护进程)
'name' => 'test',
'script' => 'daemon/test.php',
'childs' => 1,
'daemon' => 1,
),
array(//test2(每分钟运行一次)
'name' => 'test2',
'script' => 'crontab/test2.php',
'wakeup' => '* * * * *',
),
array(//test3(每五秒运行一次)
'name' => 'test3',
'script' => 'crontab/test3.php',
'wakeup' => '*/5 * * * * *',
),
array(//test4(每天凌晨0点0分运行)
'name' => 'test4',
'script' => 'crontab/test4.php',
'wakeup' => '0 0 * * *',
),
array(//test5(1-30内,每分钟运行一次)
'name' => 'test5',
'script' => 'crontab/test5.php',
'wakeup' => '1-30 * * * *',
),
)
);
PHP
1
https://gitee.com/scgywx/crontabx.git
git@gitee.com:scgywx/crontabx.git
scgywx
crontabx
crontabx
master

搜索帮助