aboutsummaryrefslogtreecommitdiff
path: root/net/mpd/files/mpd.sh
blob: 0367a23c4747cf3a01b5d53bdce6154ad0a2d534 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: mpd
# REQUIRE: NETWORKING
# KEYWORD: FreeBSD
#
# Add the following line to /etc/rc.conf to enable mpd:
#
# mpd_enable="YES"
#

mpd_flags="-b"
mpd_enable="${mpd_enable-NO}"

. %%RC_SUBR%%

name=mpd
rcvar=`set_rcvar`

prefix=%%PREFIX%%
procname=${prefix}/sbin/mpd
pidfile=/var/run/mpd.pid
required_files="${prefix}/etc/mpd/mpd.conf ${prefix}/etc/mpd/mpd.links"
command="${prefix}/sbin/mpd"

load_rc_config ${name}
run_rc_command "$1"