aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snapcast/snapcast-client.initd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-04-18 02:13:10 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-04-18 02:13:15 +0200
commit4e9f6739c943fe37767d9cc23fed86c7c97bd527 (patch)
treed8694a46a9a2cda071476b226bf1f315d464172d /testing/snapcast/snapcast-client.initd
parentcbac058105bd4853233f5ee58dab7704b967db19 (diff)
downloadaports-4e9f6739c943fe37767d9cc23fed86c7c97bd527.tar.gz
aports-4e9f6739c943fe37767d9cc23fed86c7c97bd527.tar.bz2
aports-4e9f6739c943fe37767d9cc23fed86c7c97bd527.tar.xz
testing/snapcast: improve init scripts and user/group
Diffstat (limited to 'testing/snapcast/snapcast-client.initd')
-rw-r--r--testing/snapcast/snapcast-client.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/snapcast/snapcast-client.initd b/testing/snapcast/snapcast-client.initd
new file mode 100644
index 0000000000..2783599a4c
--- /dev/null
+++ b/testing/snapcast/snapcast-client.initd
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+
+name=snapclient
+command="/usr/bin/snapclient"
+command_args="-d $snapclient_opts"
+command_user="snapcast"
+pidfile="/run/snapclient/pid"
+
+depend() {
+ need net
+ after firewall
+}
+
+start_pre() {
+ checkpath --directory --owner snapcast:audio --mode 0775 \
+ /var/log/snapcast /run/snapclient
+}
+