net/mpd wrong startup script
Wojciech Puchar
wojtek at tensor.3miasto.net
Tue Jan 9 19:59:07 UTC 2007
the fixed /usr/local/etc/rc.d/mpd.sh is below:
fixed missing : between mpd_enable and -NO and missing /etc/rc.subr after .
looks like that script were never tested
#!/bin/sh
#
# $FreeBSD: ports/net/mpd/files/mpd.sh,v 1.5 2006/02/20 20:47:27 dougb Exp
$
#
# PROVIDE: mpd
# REQUIRE: NETWORKING syslogd
#
# Add the following line to /etc/rc.conf to enable mpd:
#
# mpd_enable="YES"
#
mpd_flags="${mpd_flags:--b}"
mpd_enable="${mpd_enable:-NO}"
. /etc/rc.subr
name=mpd
rcvar=`set_rcvar`
prefix=/usr/local
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"
More information about the freebsd-ports
mailing list