ce56c53bec
* Fix typo in the startup script Reported by: Wojciech Puchar <wojtek@tensor.3miasto.net> (on ports@)
30 lines
634 B
Bash
30 lines
634 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: /tmp/pcvs/ports/net/mpd/files/Attic/mpd.in,v 1.1 2007-01-10 06:47:24 vd 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`
|
|
|
|
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"
|