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

supervisor=supervise-daemon

name="Mopidy"
description="Extensible music server"

command=/usr/bin/mopidy
command_args="--config /etc/mopidy/mopidy.conf"

command_user=mopidy:audio

depend() {
	need net
	after firewall
}

start_pre() {
	checkpath --directory --owner "$command_user" --mode 0775 \
		/var/log/mopidy
}