1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/net/rwhoisd/files/rwhoisd.in
Renato Botelho 452eb5bef8 - Add OPTIONS to disable ipv6 and enable largefile support
- RCng´ify
- Make it hier(7) complaint, moving config files to ${PREFIX}/etc, logs to
  /var/log/rwhoisd and pid to /var/run/rwhoisd
- Bump PORTREVISION

PR:		ports/99304 (based on)
Submitted by:	Jo Rhett <jrhett@svcolo.com>
2006-06-25 15:33:56 +00:00

32 lines
668 B
Bash

#!/bin/sh
# PROVIDE: rwhoisd
# REQUIRE: LOGIN
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# rwhoisd_enable (bool): Set to NO by default.
# Set it to YES to enable rwhoisd.
# rwhoisd_config (path): Set to %%PREFIX%%/etc/rwhoisd/rwhoisd.conf
# by default.
#
. %%RC_SUBR%%
name="rwhoisd"
rcvar=${name}_enable
command=%%PREFIX%%/sbin/${name}
pidfile=${rwhoisd_pidfile}
load_rc_config $name
: ${rwhoisd_enable="NO"}
: ${rwhoisd_config="%%PREFIX%%/etc/rwhoisd/rwhoisd.conf"}
: ${rwhoisd_pidfile="/var/run/${name}/${name}.pid"}
command_args="-d -c $rwhoisd_config"
run_rc_command "$1"