aboutsummaryrefslogtreecommitdiffstats
path: root/community/snapcast/snapcast-client.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/snapcast/snapcast-client.initd')
-rw-r--r--community/snapcast/snapcast-client.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/community/snapcast/snapcast-client.initd b/community/snapcast/snapcast-client.initd
new file mode 100644
index 0000000000..9218a5faef
--- /dev/null
+++ b/community/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 \
+ /run/snapclient
+}
+