Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

daemon.cpp File Reference

#include <iostream>
#include <string>
#include <fstream>
#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/ioctl.h>
#include <sys/stat.h>
#include "Portable.h"
#include "Logger.h"

Functions

int status ()
int run ()
int getPID (char *file)
int getClientPID ()
int getServerPID ()
int getRelayPID ()
void daemon_init ()
void daemon_die ()
int init (char *pidfile, char *workdir)
void die (char *pidfile)
int start (char *pidfile, char *workdir)
int stop (char *pidfile)
int install ()
int uninstall ()
void logStart (char *note, char *logname, char *logfile)
void logEnd ()

Function Documentation

void daemon_die  ) 
 

void daemon_init  ) 
 

void die char *  pidfile  ) 
 

int getClientPID  ) 
 

int getPID char *  file  ) 
 

int getRelayPID  ) 
 

int getServerPID  ) 
 

int init char *  pidfile,
char *  workdir
 

int install  ) 
 

void logEnd  ) 
 

things to do just before end

void logStart char *  note,
char *  logname,
char *  logfile
 

things to do just after started

int run  ) 
 

int start char *  pidfile,
char *  workdir
 

int status  ) 
 

int stop char *  pidfile  ) 
 

int uninstall  ) 
 


Generated on Wed Mar 16 00:10:30 2005 for Dibbler - a portable DHCPv6 by  doxygen 1.3.9.1