Blog

Prepare karaf shell settings to work with mhu-osgi-tools

Geschrieben 2018. Versionen und Details können veraltet sein.

In karaf it's possible to configure a bashrc like file. This file will be executed every time a new gogo shell is opened. See scripting.adoc for details.

You can edit the file etc/shell.init.script and append the lines

console set

logtail -c

mhus:log settrail

this will activate useful mhu-osgi-tools settings for the console.

The first line changes the current console settings to work with karaf console. The second sends the log to console output. Only console local log entries. The last line enables debug output to be printed to the console too. So you get deeper feedback to executed commands directly in the console.