Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workerman 进程存在,但是status失败,是什么情况? #43

Closed
joostshao opened this issue Oct 8, 2015 · 1 comment
Closed
Labels

Comments

@joostshao
Copy link

1:
php /data/program/Crontab/workerman/start.php status
Workerman[/data/program/Crontab/workerman/start.php] not run
用户定义信号 2

2:
ps -aux | grep WorkerMan
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
appweb 23675 0.0 0.0 193940 2184 ? S Sep21 0:00 WorkerMan: master process start_file=/data/program/Crontab/workerman/start.php
appweb 23676 0.0 0.0 193940 1760 ? S Sep21 0:00 WorkerMan: worker process crontab none
appweb 23696 0.0 0.0 61192 776 pts/2 S+ 09:58 0:00 grep WorkerMan

这个是不是有问题?  进程存在,但status有问题。

@walkor
Copy link
Owner

walkor commented Oct 8, 2015

应该是pid文件被删除了,导致找不到主进程,无法发送status信号,所以status看不到。
可以参考手册
http://doc3.workerman.net/worker-development/pid_file.html
把pid文件放到安全的地方

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants