freebsd-ports/audio/murmur/files/murmur.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

32 lines
556 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: murmur
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# murmur_enable (bool): Set to NO by default.
# Set it to YES to enable murmur.
#
. /etc/rc.subr
# Set some defaults
murmur_user=${murmur_user:-"murmur"}
name=murmur
rcvar=${name}_enable
command="%%PREFIX%%/sbin/murmurd"
command_args="-ini %%PREFIX%%/etc/murmur.ini"
pidfile="/var/run/murmur/murmur.pid"
load_rc_config $name
: ${murmur_enable="NO"}
run_rc_command "$1"