aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snapcast/snapcast-server.initd
diff options
context:
space:
mode:
authorMarvin Steadfast <marvin@xsteadfastx.org>2017-04-10 10:23:30 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-04-12 17:01:50 +0200
commit8dd03a19ba168787b7f7820d6c2dc34625e7dd6a (patch)
tree1cc2c90a87569998872c288093820b6e5ac31906 /testing/snapcast/snapcast-server.initd
parent3489cf01cef394b4d8b7eedd4b542fa21d7bca2f (diff)
downloadaports-8dd03a19ba168787b7f7820d6c2dc34625e7dd6a.tar.gz
aports-8dd03a19ba168787b7f7820d6c2dc34625e7dd6a.tar.bz2
aports-8dd03a19ba168787b7f7820d6c2dc34625e7dd6a.tar.xz
testing/snapserver: splitting into subpackages
snapserver is now a metapackage installing snapclient and snapserver. also added default config and init file for snapserver.
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 0000000000..ab70a84a14
--- /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
+}