summary refs log tree commit diff
diff options
context:
space:
mode:
authorKatherine Peeters <katherine.peeters@leagueh.xyz>2022-11-01 16:21:56 -0700
committerKatherine Peeters <katherine.peeters@leagueh.xyz>2022-11-01 16:21:56 -0700
commitdc412a450ef14b424f8e581c933663d9bcf9ebcc (patch)
treeb6907d0d93aa54ed3fc66fb06e66c3173fd2bd0e
parent8f6d04095be35a9d0ff5b9375a61ddc243b6c83c (diff)
downloadngircd-dc412a450ef14b424f8e581c933663d9bcf9ebcc.tar.gz
ngircd-dc412a450ef14b424f8e581c933663d9bcf9ebcc.zip
Improve documentation for --syslog
-rw-r--r--man/ngircd.8.tmpl3
-rw-r--r--src/ngircd/log.c2
-rw-r--r--src/ngircd/ngircd.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/man/ngircd.8.tmpl b/man/ngircd.8.tmpl
index d9c0f528..d9657362 100644
--- a/man/ngircd.8.tmpl
+++ b/man/ngircd.8.tmpl
@@ -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.
diff --git a/src/ngircd/log.c b/src/ngircd/log.c
index 910a4793..f2582bce 100644
--- a/src/ngircd/log.c
+++ b/src/ngircd/log.c
@@ -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)
diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c
index 398c75c0..a124e2e7 100644
--- a/src/ngircd/ngircd.c
+++ b/src/ngircd/ngircd.c
@@ -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 */