Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


Run karaf as a service on Ubuntu

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

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)?


edit retag flag offensive close merge delete


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 -0800 )edit

2 answers

Sort by ยป oldest newest most voted

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

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).

Cheers, D

edit flag offensive delete publish link more

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

jgoodyear gravatar image

The following documentation will show you how to install Karaf (ODL) as a system service:

edit flag offensive delete publish link more


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 -0800 )edit
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 1,301 times

Last updated: May 26 '16