Tweak SIGUSR1 statistics totals logging

* Don't dynamically allocate the struct since that's not necessary.
* Use a more concise log message.
* Include current clients when counting the time.
* Print final statistics message *after* closing all clients.
* Don't include total connections in ACCEPT.
* Mention SIGUSR1 in the new man page, too.

Adjusts #24.
This commit is contained in:
Christopher Wellons
2019-04-12 18:46:53 -04:00
parent c50585f759
commit 6f621b90b1
3 changed files with 31 additions and 26 deletions

View File

@@ -70,9 +70,9 @@ If
receives the SIGTERM signal it will gracefully shut
down the daemon, allowing it to write a complete, consistent log.
.Pp
A SIGHUP signal requests
.Nm
a reload of its configuration file.
A SIGHUP signal requests a reload of its configuration file.
.Pp
A SIGUSR1 signal will print connections stats to the log.
.Sh FILES
.Bl -tag -width /etc/endlessh/config -compact
.It Pa /etc/endlessh/config