OmniEvents
|
Interface class that contains various methods for running omniEvents as a background task. More...
#include <daemon.h>
Public Member Functions | |
Daemon (int &argc, char **&argv) | |
virtual | ~Daemon () |
void | tracefile (const char *val) |
Set _tracefile. More... | |
void | pidfile (const char *val) |
Set _pidfile. More... | |
void | foreground (bool val) |
Set _foreground. More... | |
void | daemonize () |
Redirects output streams to tracefile. More... | |
void | runningOk () |
Called to signal that all startup operations have completed OK. More... | |
Private Member Functions | |
Daemon () | |
No implementation. More... | |
Interface class that contains various methods for running omniEvents as a background task.
|
private |
No implementation.
OmniEvents::Daemon::Daemon | ( | int & | argc, |
char **& | argv | ||
) |
Definition at line 96 of file daemon_unix.cc.
References OmniEvents::DaemonImpl::_foreground, OmniEvents::DaemonImpl::_haveParent, OmniEvents::DaemonImpl::_havePidfile, OmniEvents::DaemonImpl::_haveSyslog, OmniEvents::DaemonImpl::_pidfile, OmniEvents::DaemonImpl::_pipe, OmniEvents::DaemonImpl::_tracefile, and OmniEvents::daemon.
|
virtual |
Definition at line 112 of file daemon_unix.cc.
References OmniEvents::daemon, and OmniEvents::DaemonImpl::shutdown().
void OmniEvents::Daemon::daemonize | ( | ) |
Redirects output streams to tracefile.
Definition at line 110 of file daemon_unix.cc.
References OmniEvents::daemon, and OmniEvents::DaemonImpl::daemonize().
void OmniEvents::Daemon::foreground | ( | bool | val | ) |
Set _foreground.
Definition at line 109 of file daemon_unix.cc.
References OmniEvents::daemon, and OmniEvents::DaemonImpl::foreground().
void OmniEvents::Daemon::pidfile | ( | const char * | val | ) |
Set _pidfile.
Definition at line 108 of file daemon_unix.cc.
References OmniEvents::daemon, and OmniEvents::DaemonImpl::pidfile().
void OmniEvents::Daemon::runningOk | ( | ) |
Called to signal that all startup operations have completed OK.
Definition at line 111 of file daemon_unix.cc.
References OmniEvents::daemon, and OmniEvents::DaemonImpl::runningOk().
void OmniEvents::Daemon::tracefile | ( | const char * | val | ) |
Set _tracefile.
Definition at line 107 of file daemon_unix.cc.
References OmniEvents::daemon, and OmniEvents::DaemonImpl::tracefile().