aboutsummaryrefslogtreecommitdiffstats
path: root/audio/firefly/files/mt-daapd.in
blob: 0b9b083b7847d061c8caa4f9173ee13357a626bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# $FreeBSD$

# PROVIDE: firefly
# REQUIRE: LOGIN

. /etc/rc.subr

: ${firefly_enable=NO}

name="firefly"
rcvar=firefly_enable

command="%%PREFIX%%/sbin/mt-daapd"
command_args="-c %%PREFIX%%/etc/firefly/mt-daapd.conf"
pidfile="/var/run/mt-daapd.pid"
required_dirs="%%DAAPD_DBDIR%%"
required_files="%%PREFIX%%/etc/firefly/mt-daapd.conf"

load_rc_config "$name"
run_rc_command "$1"