freebsd-ports/www/cherokee/files/cherokee.sh.in
Beech Rintoul 72760ee913 - Fix rc script
- Bump portrevision

PR:		ports/126954
Submitted by:	Dulmandakh Sukhbaatar <dulmandakh@gmail.com>
2008-08-29 17:43:09 +00:00

38 lines
721 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: cherokee
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable cherokee:
#
# cherokee_enable (bool): Set it to "YES" to enable cherokee
# Default is "NO".
# cherokee_conf (path): Set full path to config file.
# Default is "%%PREFIX%%/etc/cherokee/cherokee.conf".
#
. %%RC_SUBR%%
name="cherokee"
rcvar=`set_rcvar`
load_rc_config $name
: ${cherokee_enable="NO"}
: ${cherokee_conf="%%PREFIX%%/etc/cherokee/cherokee.conf"}
command=%%PREFIX%%/sbin/cherokee
command_args="-C ${cherokee_conf}"
pidfile=/var/run/cherokee.pid
required_files=${cherokee_conf}
stop_postcmd=stop_postcmd
stop_postcmd()
{
rm -f ${pidfile}
}
run_rc_command "$1"