aboutsummaryrefslogtreecommitdiffstats
path: root/testing/librespot/librespot.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/librespot/librespot.initd')
-rw-r--r--testing/librespot/librespot.initd13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/librespot/librespot.initd b/testing/librespot/librespot.initd
new file mode 100644
index 0000000000..f4ed8777ca
--- /dev/null
+++ b/testing/librespot/librespot.initd
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+
+command=/usr/bin/librespot
+command_args="${librespot_args}"
+pidfile=/run/librespot.pid
+command_background=true
+logfile="/var/log/librespot.log"
+start_stop_daemon_args="--user ${librespot_user:-librespot} --group ${librespot_group:-librespot} --stdout $logfile --stderr $logfile"
+
+depends() {
+ need localmount net
+ before firewall
+}