diff options
Diffstat (limited to 'media-sound/snapcast/files/snapclient.initd')
-rw-r--r-- | media-sound/snapcast/files/snapclient.initd | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/media-sound/snapcast/files/snapclient.initd b/media-sound/snapcast/files/snapclient.initd new file mode 100644 index 000000000000..df69eb2621a0 --- /dev/null +++ b/media-sound/snapcast/files/snapclient.initd @@ -0,0 +1,17 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name=snapclient +command="/usr/bin/snapclient" +command_args="$SNAPCLIENT_USER $SNAPCLIENT_OPTS" +pidfile="/run/snapclient/pid" + +depend() { + use avahi-daemon +} + +start_pre() { + checkpath --directory --owner snapclient:audio --mode 0775 \ + /run/snapclient +} |