pkgsrc/audio/squeezeboxserver/files/squeezeboxserver.sh
cube df00937bac Initial, long overdue import of audio/squeezeboxserver, version 7.5.1, into
the NetBSD Packages Collection.

To be honest, either you already know what this piece of software is, or
you don't really care.  The Squeezebox and all the other networked audio
players made by Logitech are cool devices, though.

Here's the DESCR:

SqueezeboxServer is the software behind Logitech's networked audio players such
as the Squeezebox.  It streams music to the device over the network from your
local computer.
2010-07-05 00:54:46 +00:00

26 lines
576 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: squeezeboxserver.sh,v 1.1.1.1 2010/07/05 00:54:46 cube Exp $
#
# PROVIDE: squeezeboxserver
# REQUIRE: DAEMON
#
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="squeezeboxserver"
rcvar=${name}
pidfile="@SBS_VARDIR@/${name}.pid"
command="@SBS_LIBDIR@/slimserver.pl"
command_args="--daemon --user @SBS_USER@ --group @SBS_GROUP@ --pidfile ${pidfile}"
command_interpreter="@PERL5@"
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
@ECHO@ -n " ${name}"
${command} ${squeezeboxserver_flags} ${command_args}
fi