Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages | Examples

ArDaemonizer Class Reference

#include <ariaUtil.h>

List of all members.


Detailed Description

Run the program as a background daemon (i.e. fork it) (Only available in Linux).

Java and Python Wrappers: Not available in Java or Python wrapper libraries.

Note:
Not available on Windows

Definition at line 1140 of file ariaUtil.h.

Public Member Functions

 ArDaemonizer (int *argc, char **argv)
 Constructor that sets up for daemonizing if arg checking.
bool daemonize (void)
 Daemonizes if asked too by arguments.
bool forceDaemonize (void)
 Daemonizes always.
bool isDaemonized (void)
 Returns if we're daemonized or not.
void logOptions (void) const
 Logs the options.
 ~ArDaemonizer ()
 Destructor.

Protected Attributes

bool myIsDaemonized
ArConstFunctorC< ArDaemonizermyLogOptionsCB
ArArgumentParser myParser


Member Function Documentation

bool ArDaemonizer::forceDaemonize void   ) 
 

Daemonizes always.

This returns true if daemonizing worked, returns false if it didn't... the parent process exits here if forking worked.

Definition at line 867 of file ariaUtil.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Feb 20 10:51:43 2007 for Aria by  doxygen 1.4.0