1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/net/rinetd/files/rinetd.sh.in
Renato Botelho 29cce7361b - Make portlint happy
- Use USE_RC_SUBR facility
- Rename patch-a* files
- Remove one uneeded patch and use REINPLACE_CMD instead
- Take maintainership
2005-09-30 12:05:40 +00:00

29 lines
611 B
Bash

#!/bin/sh
# PROVIDE: rinetd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD 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
#
. %%RC_SUBR%%
name="rinetd"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/rinetd"
pidfile="/var/run/rinetd.pid"
[ -z "$rinetd_enable" ] && rinetd_enable="NO"
[ -z "$rinetd_flags" ] && rinetd_flags=""
load_rc_config $name
run_rc_command "$1"