Chapter 23. system


23.1. system:framework

23.1.1. Description

OSGi Framework options.

23.1.2. Syntax

system:framework [options] [framework]

23.1.3. Arguments

NameDescription

framework

Name of the OSGi framework to use

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

23.2. system:name

23.2.1. Description

Show or change Karaf instance name.

23.2.2. Syntax

system:name [options] [name]

23.2.3. Arguments

NameDescription

name

New name for the instance

23.2.4. Options

NameDescription

--help

Display this help message

23.3. system:property

23.3.1. Description

Get or set a system property.

23.3.2. Syntax

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

23.3.3. Arguments

NameDescription

key

The system property name

value

New value for the system property

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

23.4. system:shutdown

23.4.1. Description

Shutdown the Karaf container.

23.4.2. Syntax

system:shutdown [options] [time]

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

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

23.5. system:start-level

23.5.1. Description

Gets or sets the system start level.

23.5.2. Syntax

system:start-level [options] [level]

23.5.3. Arguments

NameDescription

level

The new system start level to set

23.5.4. Options

NameDescription

--help

Display this help message

23.6. system:version

23.6.1. Description

Display the instance version

23.6.2. Syntax

system:version [options]

23.6.3. Options

NameDescription

--help

Display this help message

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.