summaryrefslogtreecommitdiff
path: root/runit/sv/mako/log/run
blob: 09818ce4de410fe5205e3b0515069c347b896d7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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 mpd-log-null cat >/dev/null
fi