#!/bin/sh
#
# $FreeBSD: ports/www/abyssws/files/abyssws.sh.in,v 1.1 2007/09/06 12:00:08 edwin Exp $
#
# PROVIDE: abyssws
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# abyssws_enable (bool):	Set to NO by default.
#				Set it to YES to enable abyssws.
#

. %%RC_SUBR%%

name=abyssws
rcvar=${name}_enable

command="%%PREFIX%%/lib/abyssws/abyssws"
command_args="-d >/dev/null"
pidfile="%%PREFIX%%/lib/abyssws/log/abyssws.pid"
stop_postcmd="abyssws_poststop"

abyssws_poststop()
{
	/bin/rm -f "${pidfile}"
}

load_rc_config $name

: ${abyssws_enable="NO"}

run_rc_command "$1"
