#include <server.hpp>
|
| Server (const std::string &configPath) |
|
void | run (bool asRoot) |
| Starts all the zones and blocks until SIGINT, SIGTERM or SIGUSR1. More...
|
|
void | reloadIfRequired (char *argv[]) |
| Reload the server by launching execve on itself if SIGUSR1 was sent to server. More...
|
|
void | terminate () |
| Terminates the server. More...
|
|
|
static bool | prepareEnvironment (const std::string &configPath, bool runAsRoot) |
| Set needed caps, groups and drop root privileges. More...
|
|
vasum::Server::Server |
( |
const std::string & |
configPath | ) |
|
bool vasum::Server::checkEnvironment |
( |
| ) |
|
|
static |
Check server runtime environment.
void vasum::Server::handleStop |
( |
| ) |
|
|
private |
void vasum::Server::handleUpdate |
( |
| ) |
|
|
private |
bool vasum::Server::prepareEnvironment |
( |
const std::string & |
configPath, |
|
|
bool |
runAsRoot |
|
) |
| |
|
staticprivate |
Set needed caps, groups and drop root privileges.
void vasum::Server::reloadIfRequired |
( |
char * |
argv[] | ) |
|
Reload the server by launching execve on itself if SIGUSR1 was sent to server.
void vasum::Server::run |
( |
bool |
asRoot | ) |
|
Starts all the zones and blocks until SIGINT, SIGTERM or SIGUSR1.
void vasum::Server::terminate |
( |
| ) |
|
Terminates the server.
Equivalent of sending SIGINT or SIGTERM signal
std::string vasum::Server::mConfigPath |
|
private |
::pthread_t vasum::Server::mDispatchingThread |
|
private |
bool vasum::Server::mIsRunning |
|
private |
bool vasum::Server::mIsUpdate |
|
private |
The documentation for this class was generated from the following files: