RE: Shutdown Merlin gracefully

"Stephen McConnell" <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <000b01c48c16$2ce76d70$1601a8c0@gloria>

> -----Original Message-----
> From: Mansour Raad [mailto:[email protected]]
> Sent: 27 August 2004 10:55
> To: [email protected]
> Subject: Shutdown Merlin gracefully
> 
> Hi,
> 
> 
> 
> Is there a way to shutdown Merlin programmatically ? rather than a
Ctrl-C
> !


If your running from the commandline - the termination signal is the
Ctrl-C.  This triggers a graceful and orderly decommissioning of
components and system shutdown.

There are things in the pipeline that will change this - namely some
work on a console facility that enabling remote control over the kernel
via command components (e.g. hot block deployment, component
reconfiguration, etc.).  You can do a lot of this already if you're in
control of an embedded kernel - but the console stuff will make this a
lot easier.

> In addition, how do you startup Merlin as a windows service with a
> specified block ?

There's something on this in the Wiki somewhere.  Basically you need to
install Merlin as an NT service (there is a script to do this in the
bin/n4 directory), setup a environment variable named MERLIN_DAEMON
point to some directory which will server as the ${merlin.dir}, and from
there you can parameterize merlin using a merlin.properties file to do
anything you want (and if your running the svn version you could even
play around with the command console stuff).

> Or for that matter, multiple Merlin service instances?

Take a look at the files in bin/nt - basically you could setup multiple
service instances just be tweaking a few of the files - in particular -
different examples of wrapper.conf (to declare the different services
and to declare different home directories).

Cheers, Steve.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.