blob: dfebc3e3b2a5c0daa9fd27e38b6763cb4ef2e2bd (
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: /tmp/pcvs/ports/net/mpd/files/Attic/mpd.in,v 1.2 2009-07-15 16:55:51 dougb Exp $
#
# PROVIDE: mpd
# REQUIRE: NETWORKING syslogd
#
# Add the following line to /etc/rc.conf[.local] to enable mpd:
#
# mpd_enable="YES"
#
# You can also set mpd_flags to any flags you want. The default is "-b".
#
mpd_flags="${mpd_flags:--b}"
mpd_enable="${mpd_enable:-NO}"
. %%RC_SUBR%%
name=mpd
rcvar=`set_rcvar`
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"
|