You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Paul Fraser <pa...@qnenet.com> on 2019/05/15 11:03:13 UTC
Close console after running start.bat
Hi,
Using Installbuilder to create installers for Linux 64 and Win 64, to run Karaf 4.2.5 in the background.
The linux version (developed on a linux 64 machine) works well by using '&' as argument to start
script . The installer closes and no console remains.
The windows version installer (developed on win 10 machine) closes if an '&' is used same as the
linux version but a console remains containing message
"karaf.bat: Ignoring predefined value for KARAF_HOME"
With no argument to start.bat in windows the installer does not close.
Any suggestions as to how to handle the start script in windows?
Paul Fraser
Re: Close console after running start.bat
Posted by cooshal <ku...@gmail.com>.
Hi:
Maybe, you can install Karaf as a Windows service. And after installing it
as a service, you could connect to the Karaf instance using the client via
SSH.
But, this totally depends on your requirements, and I feel it is quite ideal
for production environments.
Regards,
Cooshal.
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Close console after running start.bat
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
there's a difference between Unix and Windows here.
start/start.bat actually does bin/karaf server.
On Unix, it does this in background (aka karaf server &) as Unix can
"maintain" a process running in background.
Unfortunately, on Windows, it's executed on DOS command terminal to keep
the process running (if you close the DOS command, Karaf stops).
Karaf Wrapper uses a "native" piece of code for Windows, to be
integrated in Windows services.
So, it's up to you to close the DOS command created.
Regards
JB
On 15/05/2019 13:03, Paul Fraser wrote:
> Hi,
>
> Using Installbuilder to create installers for Linux 64 and Win 64, to
> run Karaf 4.2.5 in the background.
>
> The linux version (developed on a linux 64 machine) works well by using
> '&' as argument to start script . The installer closes and no console
> remains.
>
> The windows version installer (developed on win 10 machine) closes if an
> '&' is used same as the linux version but a console remains containing
> message
>
> "karaf.bat: Ignoring predefined value for KARAF_HOME"
>
> With no argument to start.bat in windows the installer does not close.
>
> Any suggestions as to how to handle the start script in windows?
>
> Paul Fraser
>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Close console after running start.bat
Posted by Paul Fraser <pa...@qnenet.com>.
more info..
The console that remains, is titled "Administrator: Karaf.
Karaf is running OK in the background for both linux and windows but of course stops if the console
is closed in the windows verssion.
Paul
On 15/05/2019 9:03 pm, Paul Fraser wrote:
> Hi,
>
> Using Installbuilder to create installers for Linux 64 and Win 64, to run Karaf 4.2.5 in the
> background.
>
> The linux version (developed on a linux 64 machine) works well by using '&' as argument to start
> script . The installer closes and no console remains.
>
> The windows version installer (developed on win 10 machine) closes if an '&' is used same as the
> linux version but a console remains containing message
>
> "karaf.bat: Ignoring predefined value for KARAF_HOME"
>
> With no argument to start.bat in windows the installer does not close.
>
> Any suggestions as to how to handle the start script in windows?
>
> Paul Fraser
>
>
>