YAJSW, which is actually short for Yet Another Java Service Wrapper is designed as an Open Source Java alternative for the tanuki Java service wrapper.
YAJSW manages to implement a multitude of additional functions and can be easily extended with groovy scripts. JSW configurations can be easily ported.
Here are some key features of "YAJSW":
· Wrap any native executable, java process or groovy script and run it as windows service or Linux daemon
· Easy Platform Independent installation of services/daemons
· Platform independent configuration
· Support for platform specific configuration
· Wild card for classpath directories and files
· Capture console output, log it, trigger scripts or restart process on output matching regular expressions
· Monitor and automatically restart hanging or crashed processes
· Trigger process execution and termination at specific cycles, times or scriptable conditions
· Embed the wrapper within java applications
· Read from process output or write to process input
· Support for RunAs / sudo
· Support for System Tray Icon. Display tray messages from a groovy script, for example in case of exceptions. Monitoring Console.
· Support for generation of configuration file
· Windows Cluster aware
· Support for remote network launching
· Support for jnlp configuration
· Windows Session0 support
Requirements:
· Java
What's New in This Release: [ read full changelog ]
· Bug: Jna tmp folder
· Bug: yajsw prints wrong version
· Bug: netty: do not use sun.misc.Unsafe, this may crash the JVM (we do not need high performance)
· Bug: windows >= vista and java >= 7: check that java.net.preferIPv4Stack=true is set and set it in the windows batch file and service command line
· Bug: possible loop in JVMController.processStarted()
· Change: minor changes in WrappedJavaProcess.getDOption(), WrappedJavaProcess.reconnect()
· New: new property: wrapper.restart.reload_cache
· New: script: vfsCommandCondition.gv