Ask Your Question
1

Run karaf as a service on Ubuntu

asked 2016-02-16 16:37:42 -0700

TSW gravatar image

I've downloaded and extracted the karaf binary, and can execute it fine with the ./bin/karaf command line. Loading modules etc is also fine. The problem is that when I close the session, this obviously closes karaf and therefore the controller.

Is there a way to install the controller as a service under Linux (Ubuntu)?

Thanks

edit retag flag offensive close merge delete

Comments

I noticed under the bin folder, there is a ./start command. I executed this and then did a ./status, which showed "running....". However, I attempted to use the ./karaf and ./client executables (./client asked for a password, and "admin" didn't work) to no avail.

TSW ( 2016-02-16 17:17:42 -0700 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-02-17 09:23:28 -0700

lmcdasm gravatar image

hey there..

If you are looking to have the karaf start and stop, then i would suggest that you create a /etc/init.d/odl startup script (or something similar).

Here is a link that shows you how to set any process to startup on boot, with both the old /etc/init.d way as well as to set the job as an upstart job. This will ensure that the OLD continues to run outside your session and start / stop with the host (if that is what you want). https://help.ubuntu.com/community/Ubu...

Cheers, D

edit flag offensive delete publish link more
0

answered 2016-05-26 09:13:12 -0700

jgoodyear gravatar image

The following documentation will show you how to install Karaf (ODL) as a system service: http://karaf.apache.org/manual/latest...integrationintheoperatingsystemtheservicewrapper

edit flag offensive delete publish link more

Comments

I'll note that once you start ODL, you can use the client script to log into the running container. Use logout to exit the console. You can also use a standard SSH client to connect into your running container.

jgoodyear ( 2016-05-27 12:28:59 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-02-16 16:37:42 -0700

Seen: 569 times

Last updated: May 26 '16