summaryrefslogtreecommitdiff
path: root/media-sound/mpd-ynca/files
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/mpd-ynca/files')
-rw-r--r--media-sound/mpd-ynca/files/mpd-ynca.confd7
-rw-r--r--media-sound/mpd-ynca/files/mpd-ynca.initd17
2 files changed, 24 insertions, 0 deletions
diff --git a/media-sound/mpd-ynca/files/mpd-ynca.confd b/media-sound/mpd-ynca/files/mpd-ynca.confd
new file mode 100644
index 000000000000..a042a82ceed0
--- /dev/null
+++ b/media-sound/mpd-ynca/files/mpd-ynca.confd
@@ -0,0 +1,7 @@
+# MPD client connection settings. You don't need to set these if using the mpd
+# service locally. See https://mpd.readthedocs.io/en/latest/client.html for
+# details.
+
+# MPD_HOST=localhost
+# MPD_PORT=6600
+# MPD_TIMEOUT=30
diff --git a/media-sound/mpd-ynca/files/mpd-ynca.initd b/media-sound/mpd-ynca/files/mpd-ynca.initd
new file mode 100644
index 000000000000..d18e3eeaec51
--- /dev/null
+++ b/media-sound/mpd-ynca/files/mpd-ynca.initd
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+export \
+ MPD_HOST \
+ MPD_PORT \
+ MPD_TIMEOUT
+
+pidfile="/run/${RC_SVCNAME}.pid"
+command="/usr/bin/mpd-ynca"
+command_user="mpd"
+command_background="yes"
+
+depend() {
+ after mpd
+}