activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PieterN <service...@internethoofdkantoor.nl>
Subject Re: Daemon process manager
Date Tue, 25 Sep 2007 08:47:50 GMT

Hi,


Roger Hoover wrote:
> 
> We need a convenient way to launch, shutdown, or restart the
> daemons and supervise them (restart them if they die).  We also want to
> start multiple copies of daemon process, all listening to the same queue.
> 
> Can anyone recommend any free/open-source tools for doing this?  AFAIK,
> with
> Linux init scripts, it always assumes a single daemon process and it may
> not
> automatically restart them if they die.
> 
The standard thing to do is to write a process that fork()'s as many times
as the number of childs you want. Each child process can then make a STOMP
connection and listen to the queue. This is for example how Apache works.
You can write e.g. a cron script that checks if the parent process is
running, and restart if necessary. 

Regards,

Pieter
-- 
View this message in context: http://www.nabble.com/Daemon-process-manager-tf4510444s2354.html#a12875458
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message