freebsd-ports/japanese/ebnetd/files/ebhttpd.in
TAKATSU Tomonari ce822e5b44 - Divide ebnetd.sh into 3 scripts
- Set a list of these scripts to USE_RC_SUBR
- Use SUB_FILES for pkg-message
- Use PLIST_SUB to substitute EBNETD_RUNDIR macro in pkg-plist
- Remove obsolete WWW url from pkg-descr
- Rename some patch files to pet portlint

PR:		ports/176866
Submitted by:	Yasuhiro KIMURA (maintainer)
2013-03-24 21:08:06 +00:00

33 lines
722 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: ebhttpd
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable ebhttpd:
# ebhttpd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable ebhttpd.
# ebhttpd_flags (str): Set to "" by default.
# Extra flags passed to start ebhttpd.
. /etc/rc.subr
name=ebhttpd
rcvar=ebhttpd_enable
command="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/ebnetd/${name}.pid"
required_dirs="/var/run/ebnetd"
required_files=%%PREFIX%%/etc/ebnetd.conf
ebhttpd_enable=${ebhttpd_enable:-"NO"}
ebhttpd_flags=${ebhttpd_flags:-""}
sig_reload=SIGHUP
extra_commands="reload"
load_rc_config $name
run_rc_command "$1"