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

supervisor=supervise-daemon

name=ympd
description="MPD Web GUI"

command=/usr/bin/$name
command_args="-u $ympd_user"

depend() {
        use logger dns
        need net
        after firewall
}

start_pre() {
        checkpath --directory --owner "$ympd_user" \
			--mode 0775 /var/run/"$name"
}