a40b065bd3
Previously the timestamp was locked to the time at which the logger process started. This change parses messages in bash and then calls the logger once for each message ignoring newlines (read -r) in order to guarantee the timestamp is correct.
9 lines
186 B
Bash
Executable file
9 lines
186 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Ensure dependencies start before the logger
|
|
sv check syslog-ng > /dev/null || exit 1
|
|
|
|
# Start the logger
|
|
while read -r msg; do
|
|
logger -i -t queuecleanupworker "$msg"
|
|
done
|