commit - ad8c4b8efb4c77c961516db6ed8917a6421e3d56
commit + bb1d014abad85b6938cf9d3e88e64f4ee6757ede
blob - 3f2e01546dc69779d4cf8d22b748a9d45e0993ba
blob + 59a8ef9e7e3821d1683fa40f44727ac601ec94b5
--- src/ngircd/conf.c
+++ src/ngircd/conf.c
/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2018 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2019 Alexander Barton (alex@barton.de) and Contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
int i, n;
FILE *fd;
DIR *dh;
+
+ Log(LOG_INFO, "Using configuration file \"%s\" ...", NGIRCd_ConfFile);
/* Open configuration file */
fd = fopen( NGIRCd_ConfFile, "r" );
blob - 6956776914ada5fe974c70fc52003d2bc3ef08ec
blob + f62e96754fa9ef610ef556f246f7b6f3711648cd
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2018 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2019 Alexander Barton (alex@barton.de) and Contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
struct timeval tv;
time_t t;
+ Log(LOG_NOTICE, "Server \"%s\" (on \"%s\") ready.",
+ Client_ID(Client_ThisServer()), Client_Hostname(Client_ThisServer()));
+
while (!NGIRCd_SignalQuit && !NGIRCd_SignalRestart) {
t = time(NULL);
blob - 8b39e602f56b52f879fa80fbf8fb72391e740dd6
blob + a47ce92cd81571025a446ecd0f54b8553dcf9020
--- src/ngircd/log.c
+++ src/ngircd/log.c
/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2019 Alexander Barton (alex@barton.de) and Contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
openlog(PACKAGE, LOG_CONS|LOG_PID, 0);
#endif
#endif
+ Log(LOG_NOTICE, "%s starting ...", NGIRCd_Version);
} /* Log_Init */
closelog();
openlog(PACKAGE, LOG_CONS|LOG_PID, Conf_SyslogFacility);
#endif
- Log(LOG_NOTICE, "%s started.", NGIRCd_Version);
- Log(LOG_INFO, "Using configuration file \"%s\" ...", NGIRCd_ConfFile);
}
GLOBAL void
Log_Exit( void )
{
- Log(LOG_INFO, "%s done%s, served %lu connection%s.", PACKAGE_NAME,
+ Log(LOG_NOTICE, "%s done%s, served %lu connection%s.", PACKAGE_NAME,
NGIRCd_SignalRestart ? " (restarting)" : "", Conn_CountAccepted(),
Conn_CountAccepted() == 1 ? "" : "s");
#ifdef SYSLOG
blob - f73aa50508cfb8549ba8df1b62d815dcf1c4dbf7
blob + 78477e52017c72aa674f49fcc193982134d708ec
--- src/ngircd/ngircd.c
+++ src/ngircd/ngircd.c
NGIRCd_SignalRestart = false;
NGIRCd_SignalQuit = false;
- /* Initialize modules, part I */
Log_Init(!NGIRCd_NoDaemon);
Random_Init();
Conf_Init();
Log_ReInit();
- /* Initialize the "main program": chroot environment, user and
- * group ID, ... */
+ /* Initialize the "main program":
+ * chroot environment, user and group ID, ... */
if (!NGIRCd_Init(NGIRCd_NoDaemon)) {
Log(LOG_ALERT, "Fatal: Initialization failed, exiting!");
exit(1);
}
- /* Initialize modules, part II: these functions are eventually
- * called with already dropped privileges ... */
- Channel_Init();
- Client_Init();
- Conn_Init();
- Class_Init();
-
if (!io_library_init(CONNECTION_POOL)) {
Log(LOG_ALERT,
"Fatal: Could not initialize IO routines: %s",
strerror(errno));
exit(1);
}
+
+ Channel_Init();
+ Conn_Init();
+ Class_Init();
+ Client_Init();
/* Create protocol and server identification. The syntax
* used by ngIRCd in PASS commands and the known "extended