aboutsummaryrefslogtreecommitdiffstats
path: root/community/snapcast/snapcast-server.initd
blob: 2e6d9a9b67b5c078a6141195fb23a1632de262d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run

name=snapserver
command="/usr/bin/snapserver"
command_args="-d $snapserver_opts"
command_user="snapcast"
start_stop_daemon_args="--quiet"
pidfile="/run/snapserver/pid"

depend() {
	need net
	after firewall
}

start_pre() {
	checkpath --directory --owner snapcast:audio --mode 0775 \
		/run/snapserver /var/lib/snapserver
}