Chapter 24. system

24.1. system:framework

24.1.1. Description

OSGi Framework options.

24.1.2. Syntax

system:framework [options] [framework]

24.1.3. Arguments

NameDescription

framework

Name of the OSGi framework to use

24.1.4. Options

NameDescription

-nodebug, --disable-debug

Disable debug for the OSGi framework

--help

Display this help message

-debug, --enable-debug

Enable debug for the OSGi framework

24.2. system:name

24.2.1. Description

Show or change Karaf instance name.

24.2.2. Syntax

system:name [options] [name]

24.2.3. Arguments

NameDescription

name

New name for the instance

24.2.4. Options

NameDescription

--help

Display this help message

24.3. system:property

24.3.1. Description

Get or set a system property.

24.3.2. Syntax

system:property [options] [key] [value]

24.3.3. Arguments

NameDescription

key

The system property name

value

New value for the system property

24.3.4. Options

NameDescription

--help

Display this help message

-f, --file-dump

Dump all system properties in a file (in data folder)

-p, --persistent

Persist the new value to the etc/system.properties file

-u, --unset

Show unset know properties with value unset

24.4. system:shutdown

24.4.1. Description

Shutdown the Karaf container.

24.4.2. Syntax

system:shutdown [options] [time]

24.4.3. Arguments

NameDescription

time

Shutdown after a specified delay. The time argument can have different formats. First, it can be an absolute time in the format hh:mm, in which hh is the hour (1 or 2 digits) and mm is the minute of the hour (in two digits). Second, it can be in the format m (or +m), in which m is the number of minutes to wait. The word now is an alias for 0 (or +0).

24.4.4. Options

NameDescription

-c, --clean, --clean-all, -ca

Force a clean restart by deleting the data directory

--help

Display this help message

-h, --halt

Halt the Karaf container.

-cc, --clean-cache, -cc

Force a clean restart by deleting the cache directory

-f, --force

Force the shutdown without confirmation message.

-r, --reboot

Reboot the Karaf container.

24.5. system:start-level

24.5.1. Description

Gets or sets the system start level.

24.5.2. Syntax

system:start-level [options] [level]

24.5.3. Arguments

NameDescription

level

The new system start level to set

24.5.4. Options

NameDescription

--help

Display this help message

24.6. system:version

24.6.1. Description

Display the instance version

24.6.2. Syntax

system:version [options]

24.6.3. Options

NameDescription

--help

Display this help message