You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by rcbandit <pe...@gmail.com> on 2015/06/29 20:18:23 UTC

Start Karaf 4.0.0 in background

I tried to start Karaf in background mode

[root@ip-172-31-30-204 bin]# ./start
[root@ip-172-31-30-204 bin]# ./status
karaf: JAVA_HOME not set; results may vary
/opt/apache-karaf-4.0.0/data/port shutdown port file doesn't exist. The
container is not running.
[root@ip-172-31-30-204 bin]#


But for some reason it's not working. What is the proper way to start Karaf
in background mode?



--
View this message in context: http://karaf.922171.n3.nabble.com/Start-Karaf-4-0-0-in-background-tp4041166.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Start Karaf 4.0.0 in background

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
You can define JAVA_HOME in bin/setenv.

Regards
JB

On 06/29/2015 08:53 PM, rcbandit wrote:
> Look like JAVA_HOME is the problem. Can I hard code JAVA_HOME in Karaf? Or
> there is a better way?
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Start-Karaf-4-0-0-in-background-tp4041166p4041171.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Start Karaf 4.0.0 in background

Posted by rcbandit <pe...@gmail.com>.
Look like JAVA_HOME is the problem. Can I hard code JAVA_HOME in Karaf? Or
there is a better way?




--
View this message in context: http://karaf.922171.n3.nabble.com/Start-Karaf-4-0-0-in-background-tp4041166p4041171.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Start Karaf 4.0.0 in background

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
It's the correct, and I just tried:

jbonofre@latitude:~/Downloads/apache-karaf-4.0.0/bin$ ./start
jbonofre@latitude:~/Downloads/apache-karaf-4.0.0/bin$ ./status
Running ...
jbonofre@latitude:~/Downloads/apache-karaf-4.0.0/bin$ ./stop

Is the user who runs Karaf has write permission on etc/config.properties 
file (where the shutdown command is written) and in the data folder (to 
write the port file) ?

Regards
JB

On 06/29/2015 08:18 PM, rcbandit wrote:
> I tried to start Karaf in background mode
>
> [root@ip-172-31-30-204 bin]# ./start
> [root@ip-172-31-30-204 bin]# ./status
> karaf: JAVA_HOME not set; results may vary
> /opt/apache-karaf-4.0.0/data/port shutdown port file doesn't exist. The
> container is not running.
> [root@ip-172-31-30-204 bin]#
>
>
> But for some reason it's not working. What is the proper way to start Karaf
> in background mode?
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Start-Karaf-4-0-0-in-background-tp4041166.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com