diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2019-01-19 23:47:48 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2019-01-20 00:47:44 +0100 |
commit | 1000910860bd5281fcc9696cd34bc6bc80113b1c (patch) | |
tree | 1a39fad6838f4f55dc2a9b7c994d780713d50714 /community/snapcast/snapcast-server.initd | |
parent | 4e88e935ba0b6e51178c6a341c8796af61cc9f22 (diff) | |
download | aports-1000910860bd5281fcc9696cd34bc6bc80113b1c.tar.bz2 aports-1000910860bd5281fcc9696cd34bc6bc80113b1c.tar.xz |
community/snapcast: fix OpenRC service
Without creating /var/lib/snapserver the services fails to start with
the following error message:
Exception: failed to create settings directory: "/var/lib/snapserver/": 13
Because the snapcast process itself tries to create the directory but
doesn't run as root and therefore gets an EACCESS (13) error.
While at it I also specified the pidfile created by the snapcast
process. No idea how OpenRC was even able to track the service status
without it.
Diffstat (limited to 'community/snapcast/snapcast-server.initd')
-rw-r--r-- | community/snapcast/snapcast-server.initd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/community/snapcast/snapcast-server.initd b/community/snapcast/snapcast-server.initd index ae336d36cf..2e6d9a9b67 100644 --- a/community/snapcast/snapcast-server.initd +++ b/community/snapcast/snapcast-server.initd @@ -5,6 +5,7 @@ command="/usr/bin/snapserver" command_args="-d $snapserver_opts" command_user="snapcast" start_stop_daemon_args="--quiet" +pidfile="/run/snapserver/pid" depend() { need net @@ -13,6 +14,6 @@ depend() { start_pre() { checkpath --directory --owner snapcast:audio --mode 0775 \ - /run/snapserver + /run/snapserver /var/lib/snapserver } |