[development] How to control background processes from inside Drupal?

Moshe Weitzman weitzman at tejasa.com
Mon May 10 15:09:51 UTC 2010


I don't have any experience in this realm, but you might look at
http://drupal.org/project/daemon or
http://drupal.org/project/daemoncli

On Mon, May 10, 2010 at 9:02 AM, Leo Burd <leob at media.mit.edu> wrote:
> Hello there,
>
> Is there any way to start/stop background processes from inside Drupal?
>
> I'm currently writing a module that has to continuously monitor  a socket
> connection for events coming from a remote server.  I thought about using
> hook_cron(), but I'm afraid that the infinite (or continuous) loop of my
> event handler would tie out other modules that use hook_cron().  Another
> alternative would be to use batch api, but do batch processes run in the
> background?
>
> Thanks in advance,
>
> Leo
>


More information about the development mailing list