dotfiles/.runit/sv/pipewire-media-session/log/run

13 lines
283 B
Text
Raw Permalink Normal View History

2023-12-24 21:05:52 +01:00
#!/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 pipewire-media-session-log-null cat >/dev/null
fi