diff options
Diffstat (limited to 'testing/snapcast/snapcast-server.initd')
-rw-r--r-- | testing/snapcast/snapcast-server.initd | 14 |
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 +} + |