1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/audio/musicpd/files/musicpd.sh
Munechika SUMIKAWA 3c111dc407 Add musicpd 0.9.1, a remote-controllable music-daemon.
PR:		57518
Submitted by:	Mark Reidel <ports@mark.reidel.info>
2003-10-08 10:41:32 +00:00

30 lines
466 B
Bash

#!/bin/sh
#
# PROVIDE: musicpd
# REQUIRE:
# BEFORE:
# KEYWORD: FreeBSD shutdown
# Add the following line to /etc/rc.conf to enable mpd:
#
#musicpd_enable="YES"
. %%RC_SUBR%%
name=musicpd
rcvar=`set_rcvar`
config=%%PREFIX%%/etc/mpd.conf
command=%%PREFIX%%/bin/mpd
required_files=$config
musicpd_flags="$musicpd_flags $config"
[ -z "$musicpd_enable" ] && musicpd_enable="NO"
[ -z "$musicpd_flags" ] && musicpd_flags=
load_rc_config $name
run_rc_command "$1"