How to Auto-Start Apache Karaf in CentOS

1) Install the wrapper feature.

features:install wrapper

2) Install the wrapper:

wrapper:install

3) Create a symbolic link to the <Apache Karaf Install Dir>/bin/karaf-service file at the /etc/init.d/ folder:

ln -s <Apache Karaf Install Dir>/bin/karaf-service /etc/init.d/

4) Add the service:

chkconfig --add karaf-service

You can find more details here.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s