freebsd-ports/net/rinetd/files/rinetd.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

28 lines
553 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: rinetd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable rinetd:
# rinetd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable rinetd
# rinetd_flags (str): Set to "" by default.
# Extra flags passed to start command
. /etc/rc.subr
name="rinetd"
rcvar=rinetd_enable
load_rc_config $name
: ${rinetd_enable="NO"}
command="%%PREFIX%%/sbin/rinetd"
pidfile="/var/run/rinetd.pid"
run_rc_command "$1"