summaryrefslogtreecommitdiff
path: root/media-sound/mpd-ynca/files/mpd-ynca.initd
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/mpd-ynca/files/mpd-ynca.initd')
-rw-r--r--media-sound/mpd-ynca/files/mpd-ynca.initd17
1 files changed, 17 insertions, 0 deletions
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
+}