2008-06-14 01:41:46 +02:00
|
|
|
#!/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.
|
|
|
|
#
|
|
|
|
|
2010-03-27 01:15:24 +01:00
|
|
|
. /etc/rc.subr
|
2008-06-14 01:41:46 +02:00
|
|
|
|
|
|
|
name=httpry
|
2012-01-14 09:57:23 +01:00
|
|
|
rcvar=httpry_enable
|
2008-06-14 01:41:46 +02:00
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
|
|
|
|
: ${httpry_enable="NO"}
|
|
|
|
: ${httpry_flags="-d -q -o /var/log/httpry.log"}
|
|
|
|
|
|
|
|
command=%%PREFIX%%/bin/httpry
|
|
|
|
|
|
|
|
run_rc_command "$1"
|