I have a symfony task that I can run with the following command:
/home/jason/projects/mcif/./symfony import:start-queue
I can then see that the process is running by doing this:
$ ps aux | grep php
jason 5760 91.0 2.5 101628 78128 pts/0 R 13:10 0:04 php /home/jason/projects/mcif/./symfony import:process --id=593 --type=Import
jason 5775 0.0 0.0 4008 764 pts/0 S+ 13:10 0:00 grep --color=auto php
That part of it works fine. Now:
- I have this job sending e-mails so I know whether it actually got started or not.
- It takes about an hour for this job to run.
- If I start the job by hitting a PHP script via a browser, I can't find its process.
Here's my script:
<?php exec('/home/jason/projects/mcif/./symfony import:start-queue');
If I run this script on the command line, it works fine. If I run this script via browser, I get the e-mails sent by the script, so I know it's running, but I can't find its process when I run ps aux
.
I need to be able to find the process because I need to be able to manually kill it.
Any ideas what's going on?