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

ArDaemonizer Class Reference

Class that (in linux) will run the program as a daemon (ie fork it). More...

#include <ariaUtil.h>

List of all members.

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)
 Logs the options.
 ~ArDaemonizer ()
 Destructor.

Protected Attributes

bool myIsDaemonized
ArArgumentParser myParser


Detailed Description

Class that (in linux) will run the program as a daemon (ie fork it).

Definition at line 1049 of file ariaUtil.h.


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 853 of file ariaUtil.cpp.

References ArLog::log().

Referenced by daemonize().


The documentation for this class was generated from the following files:
Generated on Wed Oct 19 12:56:45 2005 for Aria by  doxygen 1.4.0