#include <LSBService.hpp>
Inheritance diagram for limal::runlevel::LSBService:

Public Member Functions | |
| LSBService (const BLOCXX_NAMESPACE::String &name) | |
| ~LSBService () | |
| bool | isServiceEnabled () const |
| bool | isServiceEnabledInRunlevel (Runlevel runlevel) const |
| bool | enableService () const |
| bool | disableService () const |
| LSBInitInfo | getServiceInitInfo () const |
| BLOCXX_NAMESPACE::Array< BLOCXX_NAMESPACE::String > | getServiceActions () const |
| BLOCXX_NAMESPACE::Array< BLOCXX_NAMESPACE::String > | getDefaultActions () const |
| LSBExitCode | executeAction (const BLOCXX_NAMESPACE::String &action, const ServiceCmdArgs &cmdArgs, BLOCXX_NAMESPACE::String &stdOutput, BLOCXX_NAMESPACE::String &errOutput, const ServiceEnvVars &envVars, const BLOCXX_NAMESPACE::String &stdInput, int timeoutSecs, int outputLimit) |
| LSBExitCode | executeAction (const BLOCXX_NAMESPACE::String &action, const ServiceCmdArgs &cmdArgs) |
| LSBExitCode | executeAction (const BLOCXX_NAMESPACE::String &action) |
| LSBExitCode | executeAction (const BLOCXX_NAMESPACE::String &action, const ServiceCmdArgs &cmdArgs, BLOCXX_NAMESPACE::String &stdOutput, BLOCXX_NAMESPACE::String &errOutput, int &execStatus, const ServiceEnvVars &envVars, const BLOCXX_NAMESPACE::String &stdInput, int timeoutSecs, int outputLimit) |
| Deprecated execute the service script action variant. | |
Protected Member Functions | |
| void | addServiceAction (const BLOCXX_NAMESPACE::String &action) |
Private Attributes | |
| BLOCXX_NAMESPACE::Array< BLOCXX_NAMESPACE::String > | m_actions |
This class provides a interface to LSB compliant runlevel scripts.
|
|
Construct a LSBService object using the specified name.
|
|
|
Destructor of LSBService. |
|
|
|
|
|
Disable the service.
|
|
|
Enable the service using its default runlevel set.
|
|
||||||||||||||||||||||||||||||||||||||||
|
Deprecated execute the service script action variant.
|
|
|
Execute the service script action. This method discards the output of the script and uses the environment of the current process.
|
|
||||||||||||
|
Execute the service script action. This method discards the output of the script, uses the environment of the current process and supports additional arguments.
|
|
||||||||||||||||||||||||||||||||||||
|
Execute the service script action. This method uses the specified additional arguments (the 0th argument is always passed) and execution environment. The stdout and stderr outputs are gathered into the specified stdOutput and errOutput variables. If the envVars map is empty, the environment of the current process is used. It returns the LSB exit code returned by the script, if the script terminated normally or -1 in any other case (killed, core dumped). If a timeout or output limit is reached, the process will be killed and an exception is thrown. See blocxx::Exec::executeProcessAndGatherOutput() methods documentation for more informations.
|
|
|
Returns array of default LSB action names. LSB defines in Section 8.2, that the init script actions "start", "stop", "restart", "force-reload" and "status" shall be supported by all init scripts, "try-restart", "reload" and other are optional.
|
|
|
Returns known LSB action names. By default, alias to the getDefaultActionNames() method; may be overiden by a specialized class.
|
|
|
Returns a LSBInitInfo map containing the service information tags. Leading and trailing spaces in the strings are stripped. The Description field may contain multiple lines, that are separated by
|
|
|
|
|
|
|
|
|
|
1.4.6