Classes | |
| class | LSBService |
| LSB specific sevice class. More... | |
| class | Service |
| Generic service class. More... | |
Common-Codes | |
| Common LSB exit codes for all actions except "status". | |
| const LSBExitCode | LSB_RC_SUCCESS = 0 |
| success | |
| const LSBExitCode | LSB_RC_FAILURE = 1 |
| generic or unspecified error | |
| const LSBExitCode | LSB_RC_INVALID_ARGUMENT = 2 |
| invalid or excess argument(s) | |
| const LSBExitCode | LSB_RC_NOT_IMPLEMENTED = 3 |
| unimplemented feature ("reload") | |
| const LSBExitCode | LSB_RC_NOT_ALLOWED = 4 |
| user had insufficient privilege | |
| const LSBExitCode | LSB_RC_NOT_INSTALLED = 5 |
| program is not installed | |
| const LSBExitCode | LSB_RC_NOT_CONFIGURED = 6 |
| program is not configured | |
| const LSBExitCode | LSB_RC_NOT_RUNNING = 7 |
| program is not running | |
Status-Codes | |
| Common LSB exit codes for the "status" action. | |
| const LSBExitCode | LSB_ST_RUNNING = 0 |
| program is running or service is OK | |
| const LSBExitCode | LSB_ST_DEAD_PID_EXISTS = 1 |
| program is dead and /var/run pid file exists | |
| const LSBExitCode | LSB_ST_DEAD_LOCK_EXISTS = 2 |
| program is dead and /var/lock lock file exists | |
| const LSBExitCode | LSB_ST_NOT_RUNNING = 3 |
| program is not running | |
| const LSBExitCode | LSB_ST_UNKNOWN = 4 |
| program or service status is unknown | |
Typedefs | |
| typedef BLOCXX_NAMESPACE::Int32 | LSBExitCode |
| LSB service action exit code type. | |
| typedef BLOCXX_NAMESPACE::Map< BLOCXX_NAMESPACE::String, BLOCXX_NAMESPACE::String > | LSBInitInfo |
| typedef char | Runlevel |
| typedef BLOCXX_NAMESPACE::Array< Runlevel > | Runlevels |
| typedef BLOCXX_NAMESPACE::Array< BLOCXX_NAMESPACE::String > | ServiceCmdArgs |
| Shortcut for command argument array. | |
| typedef BLOCXX_NAMESPACE::Map< BLOCXX_NAMESPACE::String, BLOCXX_NAMESPACE::String > | ServiceEnvVars |
| Shortcut for environment variable map. | |
Functions | |
| Runlevel | getDefaultRunlevel () |
| Runlevel | getCurrentRunlevel () |
| Runlevels | getEnabledRunlevels () |
| bool | isRunlevelEnabled (Runlevel runlevel) |
| bool | setDefaultRunlevel (Runlevel runlevel) |
| bool | switchToRunlevel (Runlevel runlevel) |
| BLOCXX_NAMESPACE::Array< BLOCXX_NAMESPACE::String > | getRunlevelServiceNames (Runlevel runlevel) |
| BLOCXX_NAMESPACE::String | getServiceScriptDir () |
| BLOCXX_NAMESPACE::Array< BLOCXX_NAMESPACE::String > | getInstalledServiceNames () |
The limal::runlevel namespace is only a alias. The real namespace is defined in the file config.h file to a namespace with appended API version number.
|
|
LSB service action exit code type. LSB defines following service action exit codes:
|
|
|
|
|
|
Runlevel numbers are ascii charactes
Linux Standard Base Core Specification 3.0.1 defines the set of valid runlevels
The runlevel
The runlevel
On NOVELL / SUSE LINUX, services marked with runlevel
The runlevels |
|
|
|
|
|
Shortcut for command argument array.
|
|
|
Shortcut for environment variable map.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set the default runlevel in /etc/inittab.
|
|
|
Trigger a switch to the specified runlevel.
|
|
|
generic or unspecified error
|
|
|
invalid or excess argument(s)
|
|
|
user had insufficient privilege
|
|
|
program is not configured
|
|
|
unimplemented feature ("reload")
|
|
|
program is not installed
|
|
|
program is not running
|
|
|
success
|
|
|
program is dead and /var/lock lock file exists
|
|
|
program is dead and /var/run pid file exists
|
|
|
program is not running
|
|
|
program is running or service is OK
|
|
|
program or service status is unknown
|
1.4.6