From fa1c09c45b64e180f8deb8c7d4858e1a2eb5fb01 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Mon, 9 Dec 2013 11:55:44 -0600
Subject: runit-scripts: add mpd

The config file is stock, and will need to be changed for each persons setup

refs #931
---
 abs/core/runit-scripts/runitscripts/services/mpd/log/run | 5 +++++
 abs/core/runit-scripts/runitscripts/services/mpd/run     | 9 +++++++++
 2 files changed, 14 insertions(+)
 create mode 100755 abs/core/runit-scripts/runitscripts/services/mpd/log/run
 create mode 100755 abs/core/runit-scripts/runitscripts/services/mpd/run

diff --git a/abs/core/runit-scripts/runitscripts/services/mpd/log/run b/abs/core/runit-scripts/runitscripts/services/mpd/log/run
new file mode 100755
index 0000000..bc856fe
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/mpd/log/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec 2>&1
+. /etc/systemconfig
+ /usr/bin/logger -t mpd
+
diff --git a/abs/core/runit-scripts/runitscripts/services/mpd/run b/abs/core/runit-scripts/runitscripts/services/mpd/run
new file mode 100755
index 0000000..c4bd347
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/mpd/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+export TERM=linux
+. /etc/rc.conf
+. /etc/rc.d/functions
+stat_runit "Starting mpd"
+
+
+exec 2>&1
+exec /usr/bin/mpd --no-daemon --stdout 2>&1
-- 
cgit v0.12

