aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snapcast/snapcast-server.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-server.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-server.initd')
-rw-r--r--testing/snapcast/snapcast-server.initd14
1 files changed, 10 insertions, 4 deletions
diff --git a/testing/snapcast/snapcast-server.initd b/testing/snapcast/snapcast-server.initd
index ab70a84a14..f2b166df4e 100644
--- a/testing/snapcast/snapcast-server.initd
+++ b/testing/snapcast/snapcast-server.initd
@@ -1,12 +1,18 @@
#!/sbin/openrc-run
-name="$RC_SVCNAME"
+name=snapserver
command="/usr/bin/snapserver"
-command_args="${USER_OPTS:---user snapcast:snapcast} $SNAPSERVER_OPTS"
-command_background=yes
-pidfile="/run/$RC_SVCNAME.pid"
+command_args="-d $snapserver_opts"
+command_user="snapcast"
+start_stop_daemon_args="--quiet"
depend() {
need net
after firewall
}
+
+start_pre() {
+ checkpath --directory --owner snapcast:audio --mode 0775 \
+ /var/log/snapcast /run/snapserver
+}
+