Dear Maintainer,
at the initscript's startup, `daemon` creates both regular and .clientpid
pidfiles for every daemon instance, for example:
/run/console-log/Debian-console-log/9-_-_var_-_log_-_syslog
and
/run/console-log/Debian-console-log/9-_-_var_-_log_-_sy.clientpid
(maybe this `daemon`'s behaviour depends on the system configuration, but on
mine it's how it is)
When stopping, `daemon` deletes both pidfiles. But `console-log`'s initscript
at stopping iterates through *every* file existing in /run/console-log/Debian-
console-log before stopping, including clientpids, leading to an error at the
last iteration, as the directory gets already deleted at that time. Not much of
an issue, but `daemon` in this case outputs the whole of its "usage" page,
filling the console and pushing out other shutdown messages, which potentially
can contain some valuable info about errors etc.
The included patch solves it by excluding *.clientpid files from the iteration.