The Karaf Wrapper (for service wrapper) makes it possible to install Karaf as a Windows Service. Likewise, the scripts shipped with Karaf also make it very easy to install Karaf as a daemon process on Unix systems.
The Wrapper correctly handles "user's log outs" under Windows, service dependencies, and the ability to run services which interact with the desktop.
The following platforms are supported by the Karaf Wrapper:
Karaf Wrapper is an optional feature. To install it, simply type:
Once installed, wrapper feature will provide wrapper:install new command in the Karaf shell:
Using wrapper:install, you can install Karaf as a service.
For instance, to register Karaf as a service (depending of the running OS), in automatic start mode, simply type:
For instance, on Linux, wrapper:install command will do: