freebsd-ports/net/httpry/files/httpry.in
Doug Barton 83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00

30 lines
565 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: httpry
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable httpry:
#
# httpry_enable (bool): Set it to "YES" to enable httpry
# Default is "NO".
# httpry_flags (flags): Set extra flags to httpry
# Default is "-d -q -o /var/log/httpry.log".
# See httpry(1) for more information.
#
. /etc/rc.subr
name=httpry
rcvar=httpry_enable
load_rc_config $name
: ${httpry_enable="NO"}
: ${httpry_flags="-d -q -o /var/log/httpry.log"}
command=%%PREFIX%%/bin/httpry
run_rc_command "$1"