kakserpom / phpdaemon

Asynchronous server-side framework for network applications implemented in PHP using libevent
http://daemon.io/
GNU Lesser General Public License v3.0
1.53k stars 231 forks source link

Runnig to Seperate Daemons on the same box seems to conflict over msg_qs #177

Closed camtnbikerrwc closed 10 years ago

camtnbikerrwc commented 10 years ago

I have 2 Damons, for 2 differnet purposes. From ObjectMediatior.php I see the ftok is always the same, this means they both seem to want to use the same msg_q

$tmp = sys_get_tempdir(); $ftok = sprintf($tmp . '/%s%s', strreplace('/', '', $this->daemon->get('filename')), $this->alias);

Am I missing something about configuring my env to allow multple seperate Daemons run on the same box.

kakserpom commented 10 years ago

Are you sure that you are referring to this project (phpDaemon)? There's no ObjectMediatior.php. To run separate phpDaemon instances you should use different PID file pathes (config setting).

2014-05-28 22:00 GMT+04:00 camtnbikerrwc notifications@github.com:

I have 2 Damons, for 2 differnet purposes. From ObjectMediatior.php I see the ftok is always the same, this means they both seem to want to use the same msg_q

$tmp = sys_get_tempdir(); $ftok = sprintf($tmp . '/%s%s', strreplace('/', '', $this->daemon->get('filename')), $this->alias);

Am I missing something about configuring my env to allow multple seperate Daemons run on the same box.

— Reply to this email directly or view it on GitHubhttps://github.com/kakserpom/phpdaemon/issues/177 .

camtnbikerrwc commented 10 years ago

Ooppss I think I pinged the incorrect project.

Apologies:

ger

  https://github.com/shaneharter/PHP-Daemon/wiki/Worker-API


From: Vasily Zorin notifications@github.com To: kakserpom/phpdaemon phpdaemon@noreply.github.com Cc: camtnbikerrwc gerardah@yahoo.com Sent: Wednesday, May 28, 2014 11:06 AM Subject: Re: [phpdaemon] Runnig to Seperate Daemons on the same box seems to conflict over msg_qs (#177)

Are you sure that you are referring to this project (phpDaemon)? There's no ObjectMediatior.php. To run separate phpDaemon instances you should use different PID file pathes (config setting).

2014-05-28 22:00 GMT+04:00 camtnbikerrwc notifications@github.com:

I have 2 Damons, for 2 differnet purposes. From ObjectMediatior.php I see the ftok is always the same, this means they both seem to want to use the same msg_q

$tmp = sys_get_tempdir(); $ftok = sprintf($tmp . '/%s%s', strreplace('/', '', $this->daemon->get('filename')), $this->alias);

Am I missing something about configuring my env to allow multple seperate Daemons run on the same box.

— Reply to this email directly or view it on GitHubhttps://github.com/kakserpom/phpdaemon/issues/177 .

— Reply to this email directly or view it on GitHub.