#include "services.h"#include "timeout.h"#include "version.h"#include "datafiles.h"
Go to the source code of this file.
Functions | |
| void | expire_all (void) |
| void | save_databases (void) |
| static void | services_restart (void) |
| void | do_restart_services (void) |
| static void | services_shutdown (void) |
| void | sighandler (int signum) |
| int | main (int ac, char **av, char **envp) |
| void | do_backtrace (int show_segheader) |
Variables | |
| char * | services_dir = SERVICES_DIR |
| char * | log_filename = LOG_FILENAME |
| int | debug = 0 |
| int | readonly = 0 |
| int | logchan = 0 |
| int | skeleton = 0 |
| int | nofork = 0 |
| int | forceload = 0 |
| int | nothird = 0 |
| int | noexpire = 0 |
| int | protocoldebug = 0 |
| int | quitting = 0 |
| int | delayed_quit = 0 |
| char * | quitmsg = NULL |
| char | inbuf [BUFSIZE] |
| int | servsock = -1 |
| int | save_data = 0 |
| time_t | start_time |
| char ** | my_av |
| char ** | my_envp |
| const char | version_number [] = VERSION_STRING |
| const char | version_number_dotted [] = VERSION_STRING_DOTTED |
| const char | version_build [] |
| const char | version_flags [] = " " VER_DEBUG VER_OS VER_MYSQL VER_MODULE |
| char * | mod_current_buffer |
| static int | waiting = 0 |
| static int | started = 0 |
| void do_backtrace | ( | int | show_segheader | ) |
Definition at line 718 of file main.c.
References alog(), strings, version_build, version_flags, and version_number.
Referenced by moduleAddData(), moduleDelAllData(), moduleDelData(), moduleGetData(), sighandler(), and sstrdup().
| void do_restart_services | ( | void | ) |
Added to allow do_restart from operserv access to the static functions without making them fair game to every other function - not exactly ideal :|
Definition at line 270 of file main.c.
References expire_all(), readonly, save_databases(), and services_restart().
Referenced by do_restart().
| void expire_all | ( | void | ) |
Definition at line 103 of file main.c.
References alog(), debug, EVENT_DB_EXPIRE, EVENT_START, EVENT_STOP, expire_akills(), expire_chans(), expire_exceptions(), expire_nicks(), expire_requests(), expire_sglines(), expire_sqlines(), expire_szlines(), ircd, send_event(), ircdvars_::sgline, skeleton, ircdvars_::sqline, ircdvars_::szline, and waiting.
Referenced by do_restart_services(), main(), and sighandler().
| int main | ( | int | ac, | |
| char ** | av, | |||
| char ** | envp | |||
| ) |
Definition at line 519 of file main.c.
References alog(), anope_cmd_global(), anope_cmd_squit(), BUFSIZE, check_timeouts(), close_log(), debug, DefConTimeOut, delayed_quit, disconn(), do_listchans(), do_listnicks(), dotime(), expire_all(), ExpireTimeout, inbuf, init_primary(), init_secondary(), log_perror(), moduleCallBackRun(), ModuleRunTimeDirCleanUp(), modules_unload_all(), my_av, my_envp, noexpire, open_log(), process(), quitmsg, quitting, readonly, resetDefCon(), save_data, save_databases(), scalloc(), ServerName, services_shutdown(), servsock, sgets2(), smalloc(), snprintf(), started, strerror(), TimeoutCheck, UpdateTimeout, and waiting.
| void save_databases | ( | void | ) |
Definition at line 140 of file main.c.
References alog(), anope_cmd_pong(), backup_databases(), debug, EVENT_DB_SAVING, EVENT_START, EVENT_STOP, PreNickDBName, s_BotServ, s_HostServ, save_bs_dbase(), save_bs_rdb_dbase(), save_cs_dbase(), save_cs_rdb_dbase(), save_exceptions(), save_hs_dbase(), save_hs_rdb_dbase(), save_news(), save_ns_dbase(), save_ns_rdb_dbase(), save_ns_req_dbase(), save_ns_req_rdb_dbase(), save_os_dbase(), save_os_rdb_dbase(), save_rdb_exceptions(), save_rdb_news(), send_event(), serv_uplink, ServerName, skeleton, and waiting.
Referenced by do_restart_services(), init_secondary(), main(), and sighandler().
| static void services_restart | ( | void | ) | [static] |
Definition at line 239 of file main.c.
References alog(), anope_cmd_squit(), close_log(), disconn(), EVENT_RESTART, EVENT_START, log_perror(), modules_unload_all(), my_av, my_envp, open_log(), quitmsg, readonly, send_event(), ServerName, and servsock.
Referenced by do_restart_services(), and sighandler().
| static void services_shutdown | ( | void | ) | [static] |
Definition at line 284 of file main.c.
References alog(), anope_cmd_squit(), Anope_Free, ircdvars_::chanmodes, delete_user(), disconn(), EVENT_SHUTDOWN, EVENT_START, EVENT_STOP, firstuser(), ircd, mod_current_buffer, ModuleRunTimeDirCleanUp(), modules_unload_all(), nextuser(), quitmsg, send_event(), ServerName, servsock, started, and uplink.
Referenced by main(), and sighandler().
| void sighandler | ( | int | signum | ) |
Definition at line 320 of file main.c.
References alog(), BotDBName, BUFSIZE, ChanDBName, do_backtrace(), EVENT_DB_EXPIRE, EVENT_DB_SAVING, EVENT_RELOAD, EVENT_SIGNAL, EVENT_START, EVENT_STOP, ExceptionDBName, expire_all(), HostDBName, inbuf, modules_unload_all(), NewsDBName, NickDBName, nofork, OperDBName, PreNickDBName, quitmsg, quitting, read_config(), save_databases(), send_event(), services_restart(), services_shutdown(), snprintf(), sstrdup(), started, strsignal(), waiting, and wallops().
Referenced by init_secondary().
| int delayed_quit = 0 |
| char* log_filename = LOG_FILENAME |
| char* mod_current_buffer |
| char** my_av |
| char ** my_envp |
| int protocoldebug = 0 |
| char* services_dir = SERVICES_DIR |
| time_t start_time |
int started = 0 [static] |
| const char version_build[] |
| const char version_flags[] = " " VER_DEBUG VER_OS VER_MYSQL VER_MODULE |
| const char version_number[] = VERSION_STRING |
| const char version_number_dotted[] = VERSION_STRING_DOTTED |
int waiting = 0 [static] |
Definition at line 94 of file main.c.
Referenced by expire_all(), main(), save_databases(), and sighandler().
1.5.7.1