1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/www/abyssws/files/abyssws.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

36 lines
585 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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.
#
. /etc/rc.subr
name=abyssws
rcvar=abyssws_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"