00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef DAEMON_H
00018 #define DAEMON_H
00019
00020 #ifndef SIGTERM
00021 #define SIGTERM 15
00022 #endif
00023
00024 #ifndef SIGINT
00025 #define SIGINT 2
00026 #endif
00027
00028 int start(char * pidfile, char * workdir);
00029 int stop(char * pidfile);
00030
00031 int init(char * pidfile, char * workdir);
00032 int getPID(char * pidfile);
00033 int getServerPID();
00034 int getClientPID();
00035 int getRelayPID();
00036 int die(char * pidfile);
00037
00038 void logStart(char * note, char * logname, char * logfile);
00039 void logEnd();
00040
00041 #endif
00042