You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Roger Hoover <ro...@gmail.com> on 2007/09/24 19:15:01 UTC
Daemon process manager
We're planning to use ActiveMQ as an asynchronous messaging layer between
daemon processes written in various languages (connecting to ActiveMQ via
STOMP). 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.
What are people using to manage daemons?
Thanks,
Roger
Re: Daemon process manager
Posted by James Strachan <ja...@gmail.com>.
Have you tried using the Java Service Wrapper tool in the binary
distro. e.g. go into activemq/bin/linux and see the wrapper scripts;
it lets you setup daemons and use unix signals to
monitor/start/stop/restart etc
On 24/09/2007, Roger Hoover <ro...@gmail.com> wrote:
> We're planning to use ActiveMQ as an asynchronous messaging layer between
> daemon processes written in various languages (connecting to ActiveMQ via
> STOMP). 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.
>
> What are people using to manage daemons?
>
> Thanks,
>
> Roger
>
--
James
-------
http://macstrac.blogspot.com/
Open Source SOA
http://open.iona.com
Re: Daemon process manager
Posted by PieterN <se...@internethoofdkantoor.nl>.
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.
Re: Daemon process manager
Posted by Roger Hoover <ro...@gmail.com>.
This looks like exactly what we need. Thank you!
On 9/25/07, Alex _ <ax...@ameritech.net> wrote:
> http://www.plope.com/software/supervisor2/
>
> Roger Hoover <ro...@gmail.com> wrote: We're planning to use ActiveMQ as an asynchronous messaging layer between
> daemon processes written in various languages (connecting to ActiveMQ via
> STOMP). 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.
>
> What are people using to manage daemons?
>
> Thanks,
>
> Roger
>
>
Re: Daemon process manager
Posted by Alex _ <ax...@ameritech.net>.
http://www.plope.com/software/supervisor2/
Roger Hoover <ro...@gmail.com> wrote: We're planning to use ActiveMQ as an asynchronous messaging layer between
daemon processes written in various languages (connecting to ActiveMQ via
STOMP). 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.
What are people using to manage daemons?
Thanks,
Roger