dotfiles/.runit/sv/wireplumber/log/run

12 lines
273 B
Bash
Executable file

#!/bin/sh
[ -r ../conf ] && . ../conf
if [ "${LOGGING_ENABLE}x" == "1x" ]; then
# Create the log directory if not exists.
[ -d "${LOG_DIR}" ] || mkdir -p "${LOG_DIR}"
exec svlogd -tt "${LOG_DIR}"
else
exec chpst -b wireplumber-log-null cat >/dev/null
fi