aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snapcast/snapcast-server.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/snapcast/snapcast-server.initd')
-rw-r--r--testing/snapcast/snapcast-server.initd12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/snapcast/snapcast-server.initd b/testing/snapcast/snapcast-server.initd
new file mode 100644
index 00000000000..ab70a84a149
--- /dev/null
+++ b/testing/snapcast/snapcast-server.initd
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+
+name="$RC_SVCNAME"
+command="/usr/bin/snapserver"
+command_args="${USER_OPTS:---user snapcast:snapcast} $SNAPSERVER_OPTS"
+command_background=yes
+pidfile="/run/$RC_SVCNAME.pid"
+
+depend() {
+ need net
+ after firewall
+}