>>>>> Steinar Bang <[email protected]>:

> Ok, now I've googled up on the karaf-wrapper
>   http://stackoverflow.com/a/27667824
>   https://wrapper.tanukisoftware.com/doc/english/download.jsp

> So the question is now: is it possible to do without the karaf-wrapper?

> There are some scripts in the apache-karaf-4.0.7/bin/contrib directory
[snip!]

Update: Now my debian package run using the systemd scripts in
bin/contrib and without karaf-wrapper, and now it works without the
previous startup problems on my virtual cloud server.

To build a debian package of karaf 4.0.7 on debian "jessie", do the
following:
 1. Add jessie-backports to /etc/apt/sources.list
     https://backports.debian.org/Instructions/#index2h2
 2. Install openjdk-8-jdk from jessie-backports (as root):
     apt-get update
     apt-get -t jessie-backports install openjdk-8-jdk openjdk-8-jre 
openjdk-8-jdk-headless
 3. Install pre-requisites (as root):
     apt-get install ruby ruby-dev build-essential
 4. Clone the package building project and build a new .deb package
     mkdir -p $HOME/git
     cd $HOME/git
     git clone https://github.com/steinarb/karaf-deb-packaging.git
     cd karaf-deb-packing
     ./dist_karaf.sh
     mv *.deb /tmp
 5. As root, install the new karaf .deb
     dpkg --install /tmp/karaf_4.0.7-1.deb

After this, karaf is running as user karaf, group karaf, and will be
started on boot.  

The data directory is /var/lib/karaf/data.

The logs go to /var/log/karaf.

Reply via email to