]> arthur.barton.de Git - ngircd.git/commitdiff
Improve documentation for --syslog
authorKatherine Peeters <katherine.peeters@leagueh.xyz>
Tue, 1 Nov 2022 23:21:56 +0000 (16:21 -0700)
committerKatherine Peeters <katherine.peeters@leagueh.xyz>
Tue, 1 Nov 2022 23:21:56 +0000 (16:21 -0700)
man/ngircd.8.tmpl
src/ngircd/log.c
src/ngircd/ngircd.c

index d9c0f5283445fa150377e250fe0fb3f0a68b50df..d9657362ea4068f983f2daa5299324b2edad497a 100644 (file)
@@ -53,6 +53,9 @@ Don't fork a child and don't detach from controlling terminal.
 All log messages go to the console and you can use CTRL-C to
 terminate the server.
 .TP
+\fB\-y\fR, \fB\-\-syslog\fR
+Write log messages to the syslog even when running in the foreground.
+.TP
 \fB\-p\fR, \fB\-\-passive\fR
 Disable automatic connections to other servers. You can use the IRC command
 CONNECT later on as IRC Operator to link this ngIRCd to other servers.
index 910a479383f23bbf5fbad4cef644cba66d3fe579..f2582bce78381ec6174974c854aa47629dc03747 100644 (file)
@@ -63,7 +63,7 @@ Log_Message(int Level, const char *msg)
  * Initialitze logging.
  * This function is called before the configuration file is read in.
  *
- * @param Syslog_Mode Set to true if ngIRCd is running as daemon.
+ * @param Syslog_Mode Set to true if ngIRCd is configured to log to the syslog.
  */
 GLOBAL void
 Log_Init(bool Syslog_Mode)
index 398c75c01f58b04a838048b72088401c59085659..a124e2e75f57a00cceac0be88b53a3f7adc6504a 100644 (file)
@@ -492,7 +492,7 @@ Show_Help( void )
        puts( "  -t, --configtest   read, validate and display configuration; then exit" );
        puts( "  -V, --version      output version information and exit" );
 #ifdef SYSLOG
-       puts( "  -y, --syslog       log to syslog even when using -n" );
+       puts( "  -y, --syslog       log to syslog even when running in the foreground (-n)" );
 #endif
        puts( "  -h, --help         display this help and exit" );
 } /* Show_Help */