#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 () |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
things to do just before end |
|
things to do just after started |
|
|
|
|
|
|
|
|
|
|