limal-runlevel
Classes | Namespaces | Typedefs

LSBService.hpp File Reference

LSB Service class and other LSB related definitions. More...

#include <limal/runlevel/config.h>
#include <limal/runlevel/Service.hpp>
#include <limal/runlevel/Runlevel.hpp>
#include <blocxx/String.hpp>
#include <blocxx/Array.hpp>
#include <blocxx/Map.hpp>

Go to the source code of this file.

Classes

class  limal::runlevel::LSBService
 LSB specific sevice class. More...

Namespaces

namespace  limal
 

The main LiMaL namespace.


namespace  limal::runlevel
 

The LiMaL runlevel library namespace.


Typedefs

typedef BLOCXX_NAMESPACE::Int32 limal::runlevel::LSBExitCode
 LSB service action exit code type.
typedef BLOCXX_NAMESPACE::Map
< BLOCXX_NAMESPACE::String,
BLOCXX_NAMESPACE::String > 
limal::runlevel::LSBInitInfo

Variables

Common-Codes

Common LSB exit codes for all actions except "status".

const LSBExitCode limal::runlevel::LSB_RC_SUCCESS = 0
 success
const LSBExitCode limal::runlevel::LSB_RC_FAILURE = 1
 generic or unspecified error
const LSBExitCode limal::runlevel::LSB_RC_INVALID_ARGUMENT = 2
 invalid or excess argument(s)
const LSBExitCode limal::runlevel::LSB_RC_NOT_IMPLEMENTED = 3
 unimplemented feature ("reload")
const LSBExitCode limal::runlevel::LSB_RC_NOT_ALLOWED = 4
 user had insufficient privilege
const LSBExitCode limal::runlevel::LSB_RC_NOT_INSTALLED = 5
 program is not installed
const LSBExitCode limal::runlevel::LSB_RC_NOT_CONFIGURED = 6
 program is not configured
const LSBExitCode limal::runlevel::LSB_RC_NOT_RUNNING = 7
 program is not running
Status-Codes

Common LSB exit codes for the "status" action.

const LSBExitCode limal::runlevel::LSB_ST_RUNNING = 0
 program is running or service is OK
const LSBExitCode limal::runlevel::LSB_ST_DEAD_PID_EXISTS = 1
 program is dead and /var/run pid file exists
const LSBExitCode limal::runlevel::LSB_ST_DEAD_LOCK_EXISTS = 2
 program is dead and /var/lock lock file exists
const LSBExitCode limal::runlevel::LSB_ST_NOT_RUNNING = 3
 program is not running
const LSBExitCode limal::runlevel::LSB_ST_UNKNOWN = 4
 program or service status is unknown

Detailed Description

LSB Service class and other LSB related definitions.

The Linux Standard Base (LSB) specifiation can be found at http://www.linuxbase.org/spec/. This file is based on LSB specification version 2.1.0. Read the section 8.2, "Init-Script Actions" for more details.

Todo:
update to LSB 3.0