pkgsrc/www/cherokee/files/cherokee.sh
obache 1ca42356ea Update cherokee to 1.0.5.
Based on PR#43557 by Wen Heping.

Bump to 1.x release.
2010-07-11 12:18:55 +00:00

24 lines
459 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: cherokee.sh,v 1.3 2010/07/11 12:18:55 obache Exp $
#
# PROVIDE: cherokee
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="cherokee"
rcvar=$name
command="@PREFIX@/sbin/${name}"
command_args="-d"
required_files="@PKG_SYSCONFDIR@/cherokee/${name}.conf"
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
@ECHO@ -n " ${name}"
${command} ${cherokee_flags} ${command_args}
fi