Files
packages/net/acme-common/files/functions.sh
Aditya Bhargava 76b676e4eb acme.sh: move to procd to ensure logging gets to syslog
acme.sh error output never made it to the syslog, so:
* Add procd setup to catch stderr
* Make sure a message goes to syslog if acme.sh dies due to SIGINT

Signed-off-by: Aditya Bhargava <rightaditya@gmail.com>
2025-10-08 20:27:32 +02:00

8 lines
132 B
Bash

log() {
prio="$1"
shift
if [ "$prio" != debug ] || [ "$debug" = 1 ]; then
logger -t "$LOG_TAG" -p "daemon.$prio" -- "$@"
fi
}