diff options
Diffstat (limited to '.config/.runit/sv/mpd/log')
-rwxr-xr-x | .config/.runit/sv/mpd/log/run | 12 | ||||
-rw-r--r-- | .config/.runit/sv/mpd/log/supervise/lock | 0 | ||||
-rw-r--r-- | .config/.runit/sv/mpd/log/supervise/pid | 1 | ||||
-rw-r--r-- | .config/.runit/sv/mpd/log/supervise/stat | 1 | ||||
-rw-r--r-- | .config/.runit/sv/mpd/log/supervise/status | bin | 0 -> 20 bytes |
5 files changed, 14 insertions, 0 deletions
diff --git a/.config/.runit/sv/mpd/log/run b/.config/.runit/sv/mpd/log/run new file mode 100755 index 0000000..09818ce --- /dev/null +++ b/.config/.runit/sv/mpd/log/run @@ -0,0 +1,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 diff --git a/.config/.runit/sv/mpd/log/supervise/lock b/.config/.runit/sv/mpd/log/supervise/lock new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/.runit/sv/mpd/log/supervise/lock diff --git a/.config/.runit/sv/mpd/log/supervise/pid b/.config/.runit/sv/mpd/log/supervise/pid new file mode 100644 index 0000000..3b2be15 --- /dev/null +++ b/.config/.runit/sv/mpd/log/supervise/pid @@ -0,0 +1 @@ +941 diff --git a/.config/.runit/sv/mpd/log/supervise/stat b/.config/.runit/sv/mpd/log/supervise/stat new file mode 100644 index 0000000..f5bdd21 --- /dev/null +++ b/.config/.runit/sv/mpd/log/supervise/stat @@ -0,0 +1 @@ +run diff --git a/.config/.runit/sv/mpd/log/supervise/status b/.config/.runit/sv/mpd/log/supervise/status Binary files differnew file mode 100644 index 0000000..0413d38 --- /dev/null +++ b/.config/.runit/sv/mpd/log/supervise/status |