1234567891011121314151617181920 |
- <?php
- class DpxfCronAction extends Action {
-
-
- public function restart_workerman( ){
- if(PHP_SAPI != 'cli'){
- exit('please use cli run');
- }
- $cwd = getcwd();
- $cmd = 'cd ' .$cwd.' && php index.php start -d dpxf_index/index';
- exec($cmd);
- }
-
- }
|