pkgsrc/audio/moss/files/moss.sh
minskim af756b7097 Initial import of moss-0.1.2. Packaged by Yongbin Yu.
MOSS (MP3/OGG Streaming Server) is an HTTP-based streaming server
written in Python.  It supports the web mode where you browse and
select songs, and the live mode which supports real-time broadcast.
2004-08-10 06:48:21 +00:00

28 lines
519 B
Bash

#!/bin/sh
#
# $NetBSD: moss.sh,v 1.1.1.1 2004/08/10 06:48:21 minskim Exp $
#
# PROVIDE: moss
# REQUIRE: DAEMON LOGIN wscons
# KEYWORD: shutdown
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="moss"
rcvar=$name
command="@PREFIX@/bin/${name}"
command_interpreter="@INTERPRETER@"
pidfile="/var/run/moss.pid"
required_files="@PREFIX@/etc/moss.conf"
command_args="-c ${required_files}"
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
echo -n " ${name}"
${command} ${command_args}
fi