aboutsummaryrefslogtreecommitdiff
path: root/mpd/profile.d/mpd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mpd/profile.d/mpd.sh')
-rw-r--r--mpd/profile.d/mpd.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/mpd/profile.d/mpd.sh b/mpd/profile.d/mpd.sh
new file mode 100644
index 00000000..5a14aef2
--- /dev/null
+++ b/mpd/profile.d/mpd.sh
@@ -0,0 +1,3 @@
+# Start an mpd process if one isn't already running
+command -v mpd >/dev/null 2>&1 || return
+[ -s "$HOME"/.mpd/pid ] || mpd